[Swift-commit] r4526 - www
davidk at ci.uchicago.edu
davidk at ci.uchicago.edu
Wed May 25 13:20:23 CDT 2011
Author: davidk
Date: 2011-05-25 13:20:22 -0500 (Wed, 25 May 2011)
New Revision: 4526
Modified:
www/push_to.sh
Log:
Updated push_to script to explicitly list files to copy (so it doesn't copy scratch files, etc)
Modified: www/push_to.sh
===================================================================
--- www/push_to.sh 2011-05-25 05:00:26 UTC (rev 4525)
+++ www/push_to.sh 2011-05-25 18:20:22 UTC (rev 4526)
@@ -11,25 +11,100 @@
# Make sure we are calling this script in the same directory as the script is located
pushd $(dirname $(readlink -f $0)) > /dev/null 2>&1
+# Long list of files to explicitly include follows
+FILES="
+inc/footer.php
+inc/home_sidebar.php
+inc/papers_sidebar.php
+inc/docs_sidebar.php
+inc/about_sidebar.php
+inc/downloads_sidebar.php
+inc/support_sidebar.php
+inc/header.php
+inc/links_sidebar.php
+inc/nav.php
+inc/apps_sidebar.php
+inc/side_content.php
+shBrushVDL2.js
+bric-flow-thm.jpg
+about/index.php
+links/index.php
+template_info/template.php
+docs/index.php
+updatenodocs.sh
+dhtml.js
+index.html
+style.css
+papers/jogc_03.pdf
+papers/HealthGrid-2007-VDL2Bric.submitted-revised.pdf
+papers/challenge-editorial.pdf
+papers/OpportunisticAlgoritmForSchedulingWokflows.pdf
+papers/Chimera2002.pdf
+papers/clag_paper.pdf
+papers/Swift-SWF07.pdf
+papers/GridResourcesForGADU.pdf
+papers/sigmod-swf-vdl.pdf
+papers/BioGrid2005.pdf
+papers/ModelAndArchForDataCollab2003.pdf
+papers/SwiftParallelScripting.pdf
+papers/p57-zhao.pdf
+papers/Kickstarting2006.pdf
+papers/VirtualDataInCMS.pdf
+papers/VirtualDataProvenance.pdf
+papers/cpe2000.pdf
+papers/SwiftLanguageForDistributedParallelScripting.pdf
+papers/index.php
+papers/SwiftForSocialSciences-2007.pdf
+papers/AutomatingClimateScience.pdf
+papers/XDTM_egc05.pdf
+papers/p37-special-sw-section-6.pdf
+papers/SDSS-SC02.pdf
+papers/egc05.pdf
+papers/Falkon_SC07_v24.pdf
+papers/vonLaszewski-workflow-book.pdf
+papers/VDS-CMS.pdf
+css/style.css
+css/style1col.css
+css/style2.css
+images/workflow.jpg
+images/graphics/h_backgrnd.gif
+images/graphics/swift_sketch.gif
+images/graphics/banner2.gif
+images/graphics/h_ckgrnd.gif
+images/graphics/h_backgrnd2.gif
+images/graphics/banner.gif
+images/workflow.gif
+shCoreu.js
+apps/style2.css
+apps/index.php
+README.txt
+bric-flow.jpg
+sitemap.xml
+downloads/release-notes-0.6.txt
+downloads/release-notes-0.9.txt
+downloads/release-notes-0.5.txt
+downloads/release-notes-0.7.txt
+downloads/index.php
+downloads/release-notes-0.8.txt
+main/index.php
+push_to.sh
+support/index.php
+update.sh
+"
+
# Make sure destination directory exists
if [ ! -d "$DESTINATION" ]; then
mkdir $DESTINATION > /dev/null 2>&1 || exit 1
fi
-# Copy directory structure
-DIRS_TO_COPY=`find . -mindepth 1 -type d|grep -vi svn|sed s/^.//`
-for dir in $DIRS_TO_COPY
-do
- mkdir $DESTINATION"$dir" > /dev/null 2>&1
- chmod a+r $DESTINATION"$dir" || exit 1
-done
-
# Copy files to destination
-FILES_TO_COPY=`find . -mindepth 1 -type f |grep -vi svn|sed s/^.//`
-for file in $FILES_TO_COPY
+for FILE in $FILES
do
- cp -v .$file "$DESTINATION"`dirname $file` || exit 1
- chmod a+r "$DESTINATION"`dirname $file`/`basename $file`
+ destination_dir=`dirname $FILE`
+ mkdir -p $DESTINATION/$destination_dir
+ cp $FILE $DESTINATION/$destination_dir/
+ chmod a+r $DESTINATION/$destination_dir/$FILE > /dev/null 2>&1
done
popd > /dev/null 2>&1
+
More information about the Swift-commit
mailing list