mirror of
https://github.com/NixOS/nix
synced 2025-07-03 06:11:46 +02:00
* "Fix expression" -> "Nix expression".
* More refactoring.
This commit is contained in:
parent
b1117ef29d
commit
dfc9c64ead
14 changed files with 27 additions and 32 deletions
|
@ -1,15 +1,13 @@
|
|||
bin_PROGRAMS = nix-store
|
||||
|
||||
nix_store_SOURCES = nix.cc dotgraph.cc
|
||||
nix_store_SOURCES = main.cc dotgraph.cc
|
||||
nix_store_LDADD = ../libmain/libmain.a ../libstore/libstore.a ../libutil/libutil.a \
|
||||
../boost/format/libformat.a -L../../externals/inst/lib -ldb_cxx -lATerm
|
||||
|
||||
nix.o: nix-help.txt.hh
|
||||
main.o: help.txt.hh
|
||||
|
||||
%.hh: %
|
||||
echo -n '"' > $@
|
||||
sed 's|\(.*\)|\1\\n\\|' < $< >> $@
|
||||
echo '"' >> $@
|
||||
../bin2c/bin2c helpText < $< > $@ || (rm $@ && exit 1)
|
||||
|
||||
AM_CXXFLAGS = \
|
||||
-I.. -I../../externals/inst/include -I../libutil -I../libstore -I../libmain
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "archive.hh"
|
||||
#include "shared.hh"
|
||||
#include "dotgraph.hh"
|
||||
#include "help.txt.hh"
|
||||
|
||||
|
||||
typedef void (* Operation) (Strings opFlags, Strings opArgs);
|
||||
|
@ -13,9 +14,7 @@ typedef void (* Operation) (Strings opFlags, Strings opArgs);
|
|||
|
||||
static void printHelp()
|
||||
{
|
||||
cout <<
|
||||
#include "nix-help.txt.hh"
|
||||
;
|
||||
cout << string((char *) helpText, sizeof helpText);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
@ -301,4 +300,4 @@ void run(Strings args)
|
|||
}
|
||||
|
||||
|
||||
string programId = "nix";
|
||||
string programId = "nix-store";
|
Loading…
Add table
Add a link
Reference in a new issue