[Pkg-octave-commit] rev 116 - trunk/www
Rafael Laboissiere
rafael@costa.debian.org
Thu, 24 Feb 2005 16:32:44 +0100
Author: rafael
Date: 2005-02-24 16:32:43 +0100 (Thu, 24 Feb 2005)
New Revision: 116
Modified:
trunk/www/Makefile
Log:
Install correctly the file in web sites
Modified: trunk/www/Makefile
===================================================================
--- trunk/www/Makefile 2005-02-24 15:17:55 UTC (rev 115)
+++ trunk/www/Makefile 2005-02-24 15:32:43 UTC (rev 116)
@@ -11,16 +11,28 @@
HOST = alioth.debian.org
DIR = /org/alioth.debian.org/chroot/home/groups/pkg-octave/htdocs/
GUIDELINES = DOG-Guidelines.txt
-ICONS = icons/
+ICONS = $(shell ls icons/*.png)
INSTALLFILES = index.html $(GUIDELINES) $(ICONS)
SRCFILES = index.html.in $(GUIDELINES) $(ICONS) Makefile
+TARBALL = tmp.tgz
install: index.html svn-ci
- scp -r $(INSTALLFILES) $(USER)@$(HOST):$(DIR)
- @echo -n Setting group access of www files...
+ @echo -n "Making tarball... "
+ @tar cfz $(TARBALL) $(INSTALLFILES)
+ @echo done
+ @echo -n "Uploading tarball to web site... "
+ @scp -q $(TARBALL) $(USER)@$(HOST):$(DIR)
+ @echo done
+ @echo -n "Installing remote tarball... "
+ @ssh $(USER)@$(HOST) 'cd $(DIR); tar xfz $(TARBALL)'
+ @echo done
+ @echo -n "Setting group access of www files... "
@ssh $(USER)@$(HOST) \
- 'cd $(DIR); for i in $(INSTALLFILES); do chgrp -R $(GROUP) $$i; chmod -R g=u $$i; done'
+ 'cd $(DIR); for i in `tar tfz $(TARBALL)`; do chgrp $(GROUP) $$i; chmod g=u $$i; done'
@echo done
+ @echo -n "Removing remote tarball... "
+ @ssh $(USER)@$(HOST) rm -f $(TARBALL)
+ @echo done
%: %.in
eperl $< > $@