Mercurial > hg > Members > kono > nitros9-code
changeset 2903:d76362b779c0
Update scripts/burst snapshot repo maintainer script
Also update "nightly" target in make makefile accordingly.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sat, 11 Jan 2014 20:12:20 +0100 |
parents | 4aa0a3056f47 |
children | 62c91ac49d72 |
files | makefile scripts/burst |
diffstat | 2 files changed, 18 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/makefile Sat Jan 11 18:51:07 2014 +0100 +++ b/makefile Sat Jan 11 20:12:20 2014 +0100 @@ -64,7 +64,7 @@ nightly: clean hgupdate dskcopy $(MAKE) info > $(DSKDIR)/ReadMe $(ARCHIVE) nitros9project $(DSKDIR)/* - scp nitros9project.zip $(SOURCEUSER),nitros9@web.sourceforge.net:/home/groups/n/ni/nitros9/htdocs + scp nitros9project.zip $(SOURCEUSER),nitros9@web.sourceforge.net:/home/project-web/nitros9/htdocs/nitros9project-$(shell date +%Y%m%d).zip ssh $(SOURCEUSER),nitros9@shell.sourceforge.net create ssh $(SOURCEUSER),nitros9@shell.sourceforge.net "./burst" else @@ -90,7 +90,7 @@ nightlytest: clean hgupdate dskcopy $(MAKE) info > $(DSKDIR)/ReadMe $(ARCHIVE) nitros9project $(DSKDIR)/* - scp nitros9project.zip $(TESTSSHSERVER):$(TESTSSHDIR) + scp nitros9project.zip $(TESTSSHSERVER):$(TESTSSHDIR)/nitros9project-$(shell date +%Y%m%d).zip ssh $(TESTSSHSERVER) "./burst" else nightlytest:
--- a/scripts/burst Sat Jan 11 18:51:07 2014 +0100 +++ b/scripts/burst Sat Jan 11 20:12:20 2014 +0100 @@ -1,7 +1,16 @@ -#!/bin/tcsh -cd /home/project-web/nitros9/htdocs -rm -rf latest -mkdir latest -cd latest -unzip -o ../nitros9project.zip -echo "Options +Indexes">.htaccess +#!/bin/sh -e + +HTDOCS=/home/project-web/nitros9/htdocs +TODAY=$(date +%Y%m%d) + +cd $HTDOCS +mkdir latest-$TODAY +cd latest-$TODAY +unzip -o ../nitros9project-$TODAY.zip +echo "Options +Indexes" > .htaccess + +cd $HTDOCS +rm latest +ln -s latest-$TODAY latest +rm nitros9project.zip +ln -s nitros9project-$TODAY.zip nitros9project.zip