Mercurial > hg > chronicle
comparison Makefile @ 65:88f87687b36e
Removed references to the CVS repository and replaced them with Mercurial.
author | Steve Kemp <steve@steve.org.uk> |
---|---|
date | Sun, 25 Nov 2007 14:15:10 +0000 |
parents | 2179b1d5d25b |
children | eeda758eccf6 |
comparison
equal
deleted
inserted
replaced
64:2179b1d5d25b | 65:88f87687b36e |
---|---|
1 # | 1 # |
2 # Utility makefile for people working with chronicle | 2 # Utility makefile for people working with chronicle |
3 # | 3 # |
4 # The targets are intended to be useful for people who are using | 4 # The targets are intended to be useful for people who are using |
5 # the CVS repository - but it also contains other useful targets. | 5 # the remote repository - but it also contains other useful targets. |
6 # | 6 # |
7 # Steve | 7 # Steve |
8 # -- | 8 # -- |
9 # http://www.steve.org.uk/ | 9 # http://www.steve.org.uk/ |
10 # | 10 # |
27 | 27 |
28 nop: | 28 nop: |
29 @echo "Valid targets are (alphabetically) :" | 29 @echo "Valid targets are (alphabetically) :" |
30 @echo " " | 30 @echo " " |
31 @echo " clean = Remove bogus files and any local output." | 31 @echo " clean = Remove bogus files and any local output." |
32 @echo " diff = Run a 'cvs diff'." | 32 @echo " diff = See the local changes." |
33 @echo " test = Run our simple test cases." | 33 @echo " test = Run our simple test cases." |
34 @echo " test-verbose = Run our simple test cases, verbosely." | 34 @echo " test-verbose = Run our simple test cases, verbosely." |
35 @echo " update = Update from the CVS repository." | 35 @echo " update = Update from the remote repository." |
36 @echo " " | 36 @echo " " |
37 | 37 |
38 | 38 |
39 # | 39 # |
40 # Delete all temporary files, recursively. | 40 # Delete all temporary files, recursively. |
48 @if [ -d output ]; then rm -rf output; mkdir output; fi | 48 @if [ -d output ]; then rm -rf output; mkdir output; fi |
49 @if [ -e build-stamp ]; then rm -f build-stamp; fi | 49 @if [ -e build-stamp ]; then rm -f build-stamp; fi |
50 @if [ -e chronicle.1 ]; then rm -f chronicle.1 ; fi | 50 @if [ -e chronicle.1 ]; then rm -f chronicle.1 ; fi |
51 | 51 |
52 # | 52 # |
53 # Show what has been changed in the local copy vs. the CVS repository. | 53 # Show what has been changed in the local copy vs. the remote repository. |
54 # | 54 # |
55 diff: | 55 diff: |
56 cvs diff --unified 2>/dev/null | 56 hg diff |
57 | 57 |
58 | 58 |
59 # | 59 # |
60 # Install to /usr/local/bin | 60 # Install to /usr/local/bin |
61 # | 61 # |
79 release: clean | 79 release: clean |
80 rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION) | 80 rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION) |
81 rm -f $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz | 81 rm -f $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz |
82 cp -R . $(DIST_PREFIX)/$(BASE)-$(VERSION) | 82 cp -R . $(DIST_PREFIX)/$(BASE)-$(VERSION) |
83 perl -pi.bak -e "s/UNRELEASED/$(VERSION)/g" $(DIST_PREFIX)/$(BASE)-$(VERSION)/bin/chronicle | 83 perl -pi.bak -e "s/UNRELEASED/$(VERSION)/g" $(DIST_PREFIX)/$(BASE)-$(VERSION)/bin/chronicle |
84 find $(DIST_PREFIX)/$(BASE)-$(VERSION) -name "CVS" -print | xargs rm -rf | 84 find $(DIST_PREFIX)/$(BASE)-$(VERSION) -name ".hg*" -print | xargs rm -rf |
85 rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)/debian | 85 rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)/debian |
86 cd $(DIST_PREFIX) && tar --exclude=.cvsignore -cvf $(DIST_PREFIX)/$(BASE)-$(VERSION).tar $(BASE)-$(VERSION)/ | 86 cd $(DIST_PREFIX) && tar -cvf $(DIST_PREFIX)/$(BASE)-$(VERSION).tar $(BASE)-$(VERSION)/ |
87 gzip $(DIST_PREFIX)/$(BASE)-$(VERSION).tar | 87 gzip $(DIST_PREFIX)/$(BASE)-$(VERSION).tar |
88 mv $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz . | 88 mv $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz . |
89 rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION) | 89 rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION) |
90 gpg --armour --detach-sign $(BASE)-$(VERSION).tar.gz | 90 gpg --armour --detach-sign $(BASE)-$(VERSION).tar.gz |
91 | 91 |
104 prove --shuffle --verbose tests/ | 104 prove --shuffle --verbose tests/ |
105 | 105 |
106 | 106 |
107 | 107 |
108 # | 108 # |
109 # Update the local copy from the CVS repository. | 109 # Update the local copy from the remote repository. |
110 # | 110 # |
111 # NOTE: Removes empty local directories. | 111 # NOTE: Removes empty local directories. |
112 # | 112 # |
113 update: | 113 update: |
114 cvs -z3 update -A -P -d 2>/dev/null | 114 hg pull --update |
115 | 115 |
116 | 116 |
117 steve: | 117 steve: |
118 ./bin/chronicle --theme-dir=./themes --theme=default --url-prefix=http://www.steve.org.uk/Software/chronicle/demo/ --pre-build="/bin/rm -rf ./output" --post-build="rsync -v -r output/* steve@www.steve.org.uk:/home/www/www.steve.org.uk/htdocs/Software/chronicle/demo/" | 118 ./bin/chronicle --theme-dir=./themes --theme=default --url-prefix=http://www.steve.org.uk/Software/chronicle/demo/ --pre-build="/bin/rm -rf ./output" --post-build="rsync -v -r output/* steve@www.steve.org.uk:/home/www/www.steve.org.uk/htdocs/Software/chronicle/demo/" |
119 ./bin/chronicle --theme-dir=./themes --theme=copyrighteous --url-prefix=http://www.steve.org.uk/Software/chronicle/demo2/ --pre-build="/bin/rm -rf ./output" --post-build="rsync -v -r output/* steve@www.steve.org.uk:/home/www/www.steve.org.uk/htdocs/Software/chronicle/demo2/" | 119 ./bin/chronicle --theme-dir=./themes --theme=copyrighteous --url-prefix=http://www.steve.org.uk/Software/chronicle/demo2/ --pre-build="/bin/rm -rf ./output" --post-build="rsync -v -r output/* steve@www.steve.org.uk:/home/www/www.steve.org.uk/htdocs/Software/chronicle/demo2/" |