all: clean isisscripts help isisscripts: share/isisscripts.sl doc: help help: share/isisscripts.txt ######################################################################## .PHONY: share/isisscripts.sl share/isisscripts.sl: @bin/makestatic_isisscripts > tmp.sl @mv tmp.sl $@ @make test test: @echo 'isis> require("isisscripts");' @echo 'err=0; try(e) { require("share/isisscripts.sl"); } catch AnyError: { vmessage("\\"%s\\" exception:\\n%s\\n%s:%d", e.descr, e.message, e.file, e.line); err=1; } exit(err);' | isis -n .PHONY: share/isisscripts.slc share/isisscripts.slc: share/isisscripts.sl echo 'byte_compile_file("share/isisscripts.sl", 0);' | isis mv share/isisscripts.sl share/isisscripts_sl find src -type f -name \*.sl.code | awk '! /svn/ { print("copying " $$0); system("cp " $$0 " share"); }' .PHONY: share/isisscripts.txt share/isisscripts.txt: cd doc; make distclean isisscripts_help.txt; make clean; cd .. mv doc/isisscripts_help.txt $@ find src \( -name \*.sl -or -name \*.sl.code \) \ -exec awk '$$1=="%H" { print substr($$0,4); h=NR; } \ NR>1 && NR==h+1 { print "------------------------------------------------------------------------"; h=0; } \ ' {} >> $@ \; save: mkdir -p old cp share/isisscripts.sl old/isisscripts_`date +%Y-%m-%d_%H:%M`.sl rsync_to_crux: rsync -avz --delete . crux.sternwarte.uni-erlangen.de:/home/hanke/share/MhScripts/isisscripts/ rsync_from_crux: rsync -avz --delete crux.sternwarte.uni-erlangen.de:/home/hanke/share/MhScripts/isisscripts/ . ######################################################################## find_ws: find src -name \*.sl -exec bin/find_whitespace.pl {} \; | jed ######################################################################## find_old_doc: grep '%H \w' share/isisscripts.sl ######################################################################## showdep: grep 'require("' -r * | sed 's|require("||; s|");||' | awk -F":" '{ printf "%40s %% %s\n", $$2, $$1 }' | sort showdef: grep 'define ' -r * clean: @echo "deleting the following files:" @find -name \*~ @find -name \*~ -exec rm -f {} \; @echo "-----------------------------" ######################################################################## resolve_conflict: @echo "checking out files that are anyway produced automatically, hoping that this will resolve a conflict:" git checkout doc/ISISscripts.pdf share/isisscripts.sl share/isisscripts.txt