You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
436 B

  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -89,7 +89,7 @@ build_bins: cleanup_bins
  4. for f in $(BIN_FILES) ;\
  5. do \
  6. sed "1d" src/bin/$$f > src/bin/$$f.bak ;\
  7. - echo "#!$(LUA_BINDIR)/lua$(LUA_SUFFIX)" > src/bin/$$f ;\
  8. + echo "#!/usr/bin/env lua5.1" > src/bin/$$f ;\
  9. echo "package.path = [[$(LUADIR)/?.lua;]]..package.path" | sed "s,//,/,g" >> src/bin/$$f ;\
  10. cat src/bin/$$f.bak >> src/bin/$$f ;\
  11. chmod +x src/bin/$$f ;\