- @perl ./tools/list-files.pl | perl ./tools/find-missing.pl
- @perl ./tools/list-files.pl | perl ./tools/find-outdated.pl
+ perl ./tools/list-files.pl | perl ./tools/find-missing.pl
+ perl ./tools/list-files.pl | perl ./tools/find-outdated.pl
+ perl ./tools/list-files.pl | perl ./tools/find-changed.pl
+ -git status
+
+update:
+ git pull
+ perl ./tools/list-files.pl | perl ./tools/update.pl
+ perl ./tools/list-files.pl | perl ./tools/find-outdated.pl
+ -git status
+
+commit:
+ git add -A
+ git commit -m 'Auto commit by The Sugar System.'
+ git push
+ git log --stat --unified -1 --color
+
+install: lint
+ perl ./tools/list-files.pl | perl ./tools/install.pl
+
+ifeq ($(FILES),)
+import:
+ @echo "Specify at least one file."
+ @echo "Usage: make import FILES=<FILES>"
+ @exit 1
+else
+import:
+ (for i in $(FILES); do echo $$i; done) | perl ./tools/import.pl
+ -git status
+endif
+
+import-all:
+ perl ./tools/list-files.pl | \
+ perl ./tools/find-missing.pl | \
+ cut -b 3- | \
+ perl ./tools/import.pl
+ -git status
+
+ifeq ($(FILE),)
+diff:
+ @echo "Specify one file."
+ @echo "Usage: make diff FILE=<FILE>"
+ @exit 1
+else
+diff:
+ perl ./tools/diff.pl $(FILE) | $(PAGER)
+endif