/[scripts]/trunk/update_extension_ver.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/update_extension_ver.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 13 by dpavlin, Sun Sep 25 16:40:12 2005 UTC revision 16 by dpavlin, Wed Jan 25 22:11:24 2006 UTC
# Line 36  echo "unpacked to $dir" Line 36  echo "unpacked to $dir"
36  #echo "unpacked chrome to $dir/$chrome"  #echo "unpacked chrome to $dir/$chrome"
37    
38  cat $dir/install.rdf | sed \  cat $dir/install.rdf | sed \
39          -s 's#(+ver[0-9]*fix)*</em:version>#</em:verson>#' \          -e 's#(+ver[0-9]*fix)*</em:version>#</em:verson>#' \
40          -e 's#</em:version>#+verfix</em:version>#' \          -e 's#</em:version>#+verfix</em:version>#' \
41          -e 's#<em:maxVersion>[^<]*</em:maxVersion>#<em:maxVersion>'$version'</em:maxVersion>#' \          -e 's#<em:maxVersion>[^<]*</em:maxVersion>#<em:maxVersion>'$version'</em:maxVersion>#' \
42          > $dir/install.rdf.new && \          > $dir/install.rdf.new && \
43          mv $dir/install.rdf.new $dir/install.rdf && \          mv $dir/install.rdf.new $dir/install.rdf && \
44          echo "updated version to $version in $dir/install.rdf"          echo "updated version to $version in $dir/install.rdf" || exit
45    
46  cd $dir && zip -9 -r $jar * && cd - && \  cd $dir && zip -9 -r $jar * && cd - && \
47          echo "created new jar $dir/$jar"          echo "created new jar $dir/$jar"
48    
49  mv "$dir/$jar" $jar && echo "replaced jar with new version"  mv "$dir/$jar" $jar && echo "replaced jar with new version"
50  rm -Rf "$dir"  #rm -Rf "$dir"

Legend:
Removed from v.13  
changed lines
  Added in v.16

  ViewVC Help
Powered by ViewVC 1.1.26