]> gitweb @ CieloNegro.org - sugar.git/blob - GNUmakefile
Auto commit by The Sugar System.
[sugar.git] / GNUmakefile
1 help:
2         @echo
3         @echo "  .:. Sugar - The Dot-Files Manager .:."
4         @echo
5         @echo "Usage:"
6         @echo "  make lint    - lint The Sugar System"
7         @echo "  make update  - update repository with the current dot files"
8         @echo "  make commit  - commit changes to the repository"
9         @echo "  make install - update the current dot files with the repository"
10         @echo "  make import FILES=<FILES>"
11         @echo "               - import the dot files into the repository"
12         @echo
13
14 lint:
15         perl ./tools/list-files.pl | perl ./tools/find-missing.pl
16         perl ./tools/list-files.pl | perl ./tools/find-outdated.pl
17         perl ./tools/list-files.pl | perl ./tools/find-changed.pl
18         -git status
19
20 update:
21         git pull
22         perl ./tools/list-files.pl | perl ./tools/update.pl
23         perl ./tools/list-files.pl | perl ./tools/find-outdated.pl
24         git status
25
26 commit:
27         git add -A
28         git commit -m 'Auto commit by The Sugar System.'
29         git push
30         git log --stat --unified -1 --color
31
32 install: lint
33         perl ./tools/list-files.pl | perl ./tools/install.pl
34
35 ifeq ($(FILES),)
36 import:
37         @echo "Specify at least one file."
38         @echo "Usage: make import FILES=<FILES>"
39         @exit 1
40 else
41 import:
42         perl ./tools/import.pl $(FILES)
43         -git status
44 endif
45
46 .PHONY: help lint update commit install import