Permalink
Browse files

[scripts] add an unzip option

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
1 parent b1beba1 commit 996d5b6701ad20790a97c72e6f63d95b85b27acd @hxw hxw committed May 25, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 scripts/progress
View
@@ -38,6 +38,7 @@ USAGE()
echo ' --fetch-log -f fetch log files'
echo ' --xml-link -x link wiki .xml file to latest version'
echo ' --abort -A abort remote PHP/Python/make'
+ echo ' --unzip -u unzip compressed xml files, removing corresponding old files'
exit 1
}
@@ -92,7 +93,7 @@ set_articles_link
getopt=/usr/local/bin/getopt
[ -x "${getopt}" ] || getopt=getopt
-args=$(${getopt} -o hvb:swigp::t::aml:L:z:r:R:I:cG::4::NfxAF: --long=help,verbose,base:,stamps,work,image,git,process::,tail::,analyse,memory,list:,language:,compress:,run:,re-render:,re-index:,copy,get::,sim4::,new-session,fetch-log,xml-link,abort,farm: -- "$@") || exit 1
+args=$(${getopt} -o hvb:swigup::t::aml:L:z:r:R:I:cG::4::NfxAF: --long=help,verbose,base:,stamps,work,image,git,unzip,process::,tail::,analyse,memory,list:,language:,compress:,run:,re-render:,re-index:,copy,get::,sim4::,new-session,fetch-log,xml-link,abort,farm: -- "$@") || exit 1
# replace the arguments with the parsed values
eval set -- "${args}"
@@ -218,6 +219,11 @@ do
shift
;;
+ -u|--unzip)
+ RenderDo --yes ${render_host} ${list} --verbose "cd && '${base_dir}/scripts/UnzipFiles' -v ."
+ shift
+ ;;
+
-p|--process)
if [ -n "$2" ]
then

0 comments on commit 996d5b6

Please sign in to comment.