Commit 517c8040 authored by Mart Lubbers's avatar Mart Lubbers

added manpage support for buildb

parent b09bb57e
......@@ -15,3 +15,4 @@ builddb
CloogleServer
*.prj
*.json
*.1
BIN:=CloogleServer search builddb
PRJ:=$(addsuffix .prj,$(BIN))
MAN:=builddb.1 # Others don't have --help/--version # $(addsuffix .1,$(BIN))
CPM:=cpm
SED:=sed
......@@ -8,6 +9,11 @@ SED:=sed
all: $(BIN)
man: $(MAN)
%.1: %
help2man -N ./$< > $@
%: %.prj
$(CPM) $< \
| grep -v "^Analyzing" \
......@@ -19,6 +25,7 @@ all: $(BIN)
$(SED) -i 's/[ \t]\+Path:[ \t]\+{Project}/&\n&\/CleanLevenshtein\n&\/CleanTypeUnifier\n&\/CleanTypeUnifier\/clean-compiler\/main\/\n&\/CleanTypeUnifier\/clean-compiler\/frontend\/\n&\/CleanTypeUnifier\/clean-compiler\/backend\/\n&\/CleanTypeUnifier\/clean-compiler\/main\/Unix\//' $@
$(SED) -i 's/\([ \t]\+Path:[ \t]\+\){Project}$$/&\n\1{Application}\/lib\/ArgEnv\/\n\1{Application}\/lib\/TCPIP\//' $@
$(SED) -i 's/\($(basename $@)\).exe/\1/' $@
$(SED) -i 's/\(Output:[ \t]\+\)ShowConstructors/\1NoConsole/' $@
clean:
$(RM) -r 'Clean System Files' $(BIN) $(PRJ)
$(RM) -r 'Clean System Files' $(BIN) $(PRJ) $(MAN)
......@@ -12,7 +12,7 @@ A Clean hoogle clone. Use at your own risk. Live version available
- The frontend heavily depends on [VanillaJS](http://vanilla-js.com/) so you
should have a webbrowsers that supports it.
- Add `envs/envs.linux64` to your `$CLEAN_HOME/etc/IDEEnvs`.
- Add `env/envs.linux64` to your `$CLEAN_HOME/etc/IDEEnvs`.
- Run `make`
......
......@@ -61,9 +61,9 @@ VERSION :== "Cloogle's builddb version 0.1\n"
USAGE :== concat [
VERSION, "\n",
"Usage: ./builddb [opts] > builddb.json\n\n",
"-h, --help Show this help\n",
"-r PATH Change the library root to PATH\n",
"-l PATH Add PATH to the librarypaths relative to the root\n"]
"\t-h, --help Show this help\n",
"\t-r PATH Change the library root to PATH\n",
"\t-l PATH Add PATH to the librarypaths relative to the root\n"]
Start w
# (args, w) = getCommandLine w
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment