From: <ma...@us...> - 2015-11-16 13:47:46
|
Revision: 737 http://sourceforge.net/p/pywbem/code/737 Author: maiera Date: 2015-11-16 13:47:44 +0000 (Mon, 16 Nov 2015) Log Message: ----------- Exchanged publish-as with publish script which publishes the entire subtree. Added Paths: ----------- web/publish Removed Paths: ------------- web/publish-as Added: web/publish =================================================================== --- web/publish (rev 0) +++ web/publish 2015-11-16 13:47:44 UTC (rev 737) @@ -0,0 +1,32 @@ +#!/bin/bash +# See help message, below. + +default_dir="." +userid=$1 +dir=${2:-$default_dir} + +if [[ -z $userid || $userid == --help ]] +then + echo "" + echo "Publish the current directory and any subdirectories to the PyWBEM" + echo "web presence at http:/pywbem.sourceforge.net." + echo "" + echo "Usage:" + echo " $0 {userid} [{dir}]" + echo "" + echo "Where:" + echo " {userid} Userid of an administrator for the PyWBEM project at SourceForge." + echo " {dir} Path to the directory that should be published. The files in that" + echo " directory will appear in the root directory of the web site." + echo " Optional, default: $default_dir" + echo "" + echo "The password being prompted is the SourceForge password for {userid}." + echo "" + exit 2 +fi + +echo "Publishing directory $dir" +echo "Use the password for SourceForge userid $userid, below:" +rsync -v -r -l -t --delete $dir $us...@we...:/home/project-web/pywbem/htdocs/ +rc=$? +exit $rc Property changes on: web/publish ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Deleted: web/publish-as =================================================================== --- web/publish-as 2015-11-16 13:16:12 UTC (rev 736) +++ web/publish-as 2015-11-16 13:47:44 UTC (rev 737) @@ -1,23 +0,0 @@ -#!/bin/bash -userid=$1 -file=$2 -if [[ -z $file ]] -then - echo "" - echo "Publish one file to the PyWBEM web space at SourceForge." - echo "" - echo "Usage:" - echo " $0 {userid} {file}" - echo "" - echo "Where:" - echo " {userid} is the userid of an administrator for the PyWBEM project at SourceForge." - echo " {file} is the relative file path of the (one) file to be published." - echo "" - echo "The password being asked for is the SourceForge password for {userid}." - echo "" - exit 2 -fi -echo "Publishing (as userid $userid) file: $file" -scp $file $us...@we...:/home/project-web/pywbem/htdocs/$file -rc=$? -exit $rc This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |