Skip to content

Commit

Permalink
Merge branch documentation-fixups into next
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed May 28, 2015
2 parents 554de84 + 4b0c56a commit e1af61d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ obj
/src/syscall.lua
/src/syscall
/deps/*.vsn
/src/program/programs.inc
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ $(INCOBJ): obj/%_inc.o: %.inc Makefile program/programs.inc | $(OBJDIR)
program/programs.inc:
@(for d in program/*/; do basename $$d; done) > $@

.FORCE: program/programs.inc
FORCE:

# extra/ third party bits and pieces
obj/strict.o: extra/strict.lua | $(OBJDIR)
Expand Down
2 changes: 1 addition & 1 deletion src/core/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ end

function usage ()
print("Usage: "..ffi.string(C.argv[0]).." <program> ...")
local programs = require("program.programs_inc"):gsub("[a-z]+", " %1")
local programs = require("program.programs_inc"):gsub("%S+", " %1")
print()
print("This snabb executable has the following programs built in:")
print(programs)
Expand Down

0 comments on commit e1af61d

Please sign in to comment.