diff options
Diffstat (limited to 'support/scripts/Makefile.snapshot')
| -rw-r--r-- | support/scripts/Makefile.snapshot | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/support/scripts/Makefile.snapshot b/support/scripts/Makefile.snapshot new file mode 100644 index 0000000..618d5d0 --- /dev/null +++ b/support/scripts/Makefile.snapshot @@ -0,0 +1,22 @@ +# Simple weekly tarball generator +SVNROOT = https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc +DATE = `date +%Y%m%d` +WWWROOT = /home/michaelh/www +SNAP = $(WWWROOT)/snapshots + +REVISION = 1 + +all: _sdcc + +_sdcc: + mkdir -p $(SNAP) + cd /tmp; \ + mkdir -p sdcc-$(DATE); \ + cd sdcc-$(DATE); \ + svn co $(SVNROOT) sdcc; \ + tar czf $(SNAP)/sdcc-$(DATE)-$(REVISION).tar.gz sdcc; \ + tar cIf $(SNAP)/sdcc-$(DATE)-$(REVISION).tar.bz2 sdcc + cd $(SNAP); \ + md5sum sdcc-$(DATE)-$(REVISION).tar.gz > sdcc-$(DATE)-$(REVISION).md5sums + cd $(SNAP); \ + md5sum sdcc-$(DATE)-$(REVISION).tar.bz2 >> sdcc-$(DATE)-$(REVISION).md5sums |
