Skip to content
This repository
Browse code

[scripts] add an unzip option

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
commit 996d5b6701ad20790a97c72e6f63d95b85b27acd 1 parent b1beba1
Christopher Hall authored May 25, 2012

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. 8  scripts/progress
8  scripts/progress
@@ -38,6 +38,7 @@ USAGE()
38 38
   echo '       --fetch-log       -f         fetch log files'
39 39
   echo '       --xml-link        -x         link wiki .xml file to latest version'
40 40
   echo '       --abort           -A         abort remote PHP/Python/make'
  41
+  echo '       --unzip           -u         unzip compressed xml files, removing corresponding old files'
41 42
   exit 1
42 43
 }
43 44
 
@@ -92,7 +93,7 @@ set_articles_link
92 93
 
93 94
 getopt=/usr/local/bin/getopt
94 95
 [ -x "${getopt}" ] || getopt=getopt
95  
-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
  96
+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
96 97
 # replace the arguments with the parsed values
97 98
 eval set -- "${args}"
98 99
 
@@ -218,6 +219,11 @@ do
218 219
       shift
219 220
       ;;
220 221
 
  222
+    -u|--unzip)
  223
+      RenderDo --yes ${render_host} ${list} --verbose "cd && '${base_dir}/scripts/UnzipFiles' -v ."
  224
+      shift
  225
+      ;;
  226
+
221 227
     -p|--process)
222 228
       if [ -n "$2" ]
223 229
       then

0 notes on commit 996d5b6

Please sign in to comment.
Something went wrong with that request. Please try again.