]> gitweb @ CieloNegro.org - sugar.git/blobdiff - GNUmakefile
Auto commit by The Sugar System.
[sugar.git] / GNUmakefile
index 8d1bdb76085ae881990efa421094823b25320f41..1d927bfb50eefaf8792a3452f8be0796f45380d6 100644 (file)
@@ -3,14 +3,17 @@ help:
        @echo "  .:. Sugar - The Dot-Files Manager .:."
        @echo
        @echo "Usage:"
-       @echo "  make lint    - lint The Sugar System"
-       @echo "  make update  - update repository with the current dot files"
-       @echo "  make commit  - commit changes to the repository"
-       @echo "  make install - update the current dot files with the repository"
+       @echo "  make lint    - lint The Sugar System."
+       @echo "  make update  - update repository with the current dot files."
+       @echo "  make commit  - commit changes to the repository."
+       @echo "  make install - update the current dot files with the repository."
        @echo "  make import FILES=<FILES>"
-       @echo "               - import the dot files into the repository"
+       @echo "               - import the dot files into the repository."
+       @echo "  make import-all"
+       @echo "               - import every uncontrolled dot files, which aren't"
+       @echo "                 ignored, into the repository."
        @echo "  make diff FILE=<FILE>"
-       @echo "               - show diff of the dot file"
+       @echo "               - show diff of the dot file."
        @echo
 
 lint:
@@ -41,10 +44,17 @@ import:
        @exit 1
 else
 import:
-       perl ./tools/import.pl $(FILES)
+       (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."