Revision 16

Date:
2006/01/25 22:11:24
Author:
dpavlin
Revision Log:
tweak
Files:

Legend:

 
Added
 
Removed
 
Modified
  • trunk/update_extension_ver.sh

     
    36 36 #echo "unpacked chrome to $dir/$chrome"
    37 37
    38 38 cat $dir/install.rdf | sed \
    39 -s 's#(+ver[0-9]*fix)*</em:version>#</em:verson>#' \
    39 -e 's#(+ver[0-9]*fix)*</em:version>#</em:verson>#' \
    40 40 -e 's#</em:version>#+verfix</em:version>#' \
    41 41 -e 's#<em:maxVersion>[^<]*</em:maxVersion>#<em:maxVersion>'$version'</em:maxVersion>#' \
    42 42 > $dir/install.rdf.new && \
    43 43 mv $dir/install.rdf.new $dir/install.rdf && \
    44 echo "updated version to $version in $dir/install.rdf"
    44 echo "updated version to $version in $dir/install.rdf" || exit
    45 45
    46 46 cd $dir && zip -9 -r $jar * && cd - && \
    47 47 echo "created new jar $dir/$jar"
    48 48
    49 49 mv "$dir/$jar" $jar && echo "replaced jar with new version"
    50 rm -Rf "$dir"
    50 #rm -Rf "$dir"