Revision: 1491 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1491&view=re... Author: dmaphy Date: 2010-07-31 15:41:18 +0000 (Sat, 31 Jul 2010)
Log Message: ----------- website: add push2stable.sh script
Added Paths: ----------- www/staging/push2stable.sh
Added: www/staging/push2stable.sh =================================================================== --- www/staging/push2stable.sh (rev 0) +++ www/staging/push2stable.sh 2010-07-31 15:41:18 UTC (rev 1491) @@ -0,0 +1,38 @@ +#!/bin/bash + +set -x + +PREVIEWDIR="/home/dmaphy/webroot/websites/plugins.geany.org/" +STABLEDIR="/home/dmaphy/plugins.geany.org/" +BACKUPDIR="/home/dmaphy/plugins.geany.org.backup/" +EXCLUDE=".svn gencontent.sh push2stable.sh rst2html_template.txt templates tidy.conf rst2html_config.conf" + +if [ ! -d $PREVIEWDIR ]; then + echo "Could not find $PREVIEWDIR. Exiting.."; + exit 127; +fi + +if [ ! -d $STABLEDIR ]; then + echo "Could not find $STABLEDIR. Trying to create..."; + mkdir -p $STABLEDIR; +fi + +if [ ! -d $BACKUPDIR ]; then + echo "Could not find $BACKUPDIR. Trying to create..."; + mkdir -p $BACKUPDIR; +fi + +EXARG="" +for i in $EXCLUDE; +do + EXARG="$EXARG --exclude $i" +done + + +# check if $STABLEDIR is empty and backup if it is not +ls $STABLEDIR/* > /dev/null 2>&1; +if [ $? -eq 0 ]; then + rsync -avC $EXARG --delete $STABLEDIR $BACKUPDIR +fi + +rsync -avC $EXARG --delete $PREVIEWDIR $STABLEDIR
Property changes on: www/staging/push2stable.sh ___________________________________________________________________ Added: svn:executable + *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org