]> 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 "  make diff FILE=<FILE>"
13         @echo "               - show diff of the dot file"
14         @echo
15
16 lint:
17         perl ./tools/list-files.pl | perl ./tools/find-missing.pl
18         perl ./tools/list-files.pl | perl ./tools/find-outdated.pl
19         perl ./tools/list-files.pl | perl ./tools/find-changed.pl
20         -git status
21
22 update:
23         git pull
24         perl ./tools/list-files.pl | perl ./tools/update.pl
25         perl ./tools/list-files.pl | perl ./tools/find-outdated.pl
26         -git status
27
28 commit:
29         git add -A
30         git commit -m 'Auto commit by The Sugar System.'
31         git push
32         git log --stat --unified -1 --color
33
34 install: lint
35         perl ./tools/list-files.pl | perl ./tools/install.pl
36
37 ifeq ($(FILES),)
38 import:
39         @echo "Specify at least one file."
40         @echo "Usage: make import FILES=<FILES>"
41         @exit 1
42 else
43 import:
44         perl ./tools/import.pl $(FILES)
45         -git status
46 endif
47
48 ifeq ($(FILE),)
49 diff:
50         @echo "Specify one file."
51         @echo "Usage: make diff FILE=<FILE>"
52         @exit 1
53 else
54 diff:
55         perl ./tools/diff.pl $(FILE) | $(PAGER)
56 endif
57
58 .PHONY: help lint update commit install import diff