[Assorted-commits] SF.net SVN: assorted: [522] shell-tools/trunk/src/bash-commons/assorted. bash
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-29 03:31:15
|
Revision: 522 http://assorted.svn.sourceforge.net/assorted/?rev=522&view=rev Author: yangzhang Date: 2008-02-28 19:31:18 -0800 (Thu, 28 Feb 2008) Log Message: ----------- added assorted.bash Added Paths: ----------- shell-tools/trunk/src/bash-commons/assorted.bash Added: shell-tools/trunk/src/bash-commons/assorted.bash =================================================================== --- shell-tools/trunk/src/bash-commons/assorted.bash (rev 0) +++ shell-tools/trunk/src/bash-commons/assorted.bash 2008-02-29 03:31:18 UTC (rev 522) @@ -0,0 +1,36 @@ +#!/usr/bin/env bash + +# This is a common include file for all project configuration scripts for +# Assorted Projects. + +. common.bash || exit 1 + +root_site_dir="$( parent-dir named assorted )/assorted-site/trunk" +clean= +prof=shell-sf +base_web_dir=assorted/htdocs +webdir=$base_web_dir/public_html +stagedir="$( mktemp -d )" + +cp -r "${webfiles[@]}" "$stagedir" + +for src in "${websrcs[@]}" ; do + if [[ src == README ]] + then out=index.html + else out="$( basename "${src%.*}.html" )" + fi + pandoc -s -S --tab-stop=2 \ + -c http://assorted.sf.net/main.css \ + -H "$(root_site_dir)/header.html" \ + -A "$(root_site_dir)/footer.html" \ + -o "$stagedir/$out" "$src" +done + +tar czf - -C "$stagedir" . | +ssh $prof " + set -o errexit -o nounset + if [[ $clean ]] ; then rm -r $webdir ; fi + mkdir -p $webdir + cd $webdir + tar xzf - +" Property changes on: shell-tools/trunk/src/bash-commons/assorted.bash ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |