File:  [mozdev] / checkyesss / src /
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Sun Feb 17 11:34:32 2008 UTC (9 years, 8 months ago) by treitmayr
Branches: MAIN
CVS tags: snapshot-0-6-15-20080217, release-0-6-34, release-0-6-33, release-0-6-32, release-0-6-31-20091123, release-0-6-31-20091122, release-0-6-31, release-0-6-30, release-0-6-29, release-0-6-28, release-0-6-27, release-0-6-26, release-0-6-25, release-0-6-24, release-0-6-23, release-0-6-22, release-0-6-20, release-0-6-19, release-0-6-18, release-0-6-17, release-0-6-16, HEAD
fixed icon color for Yesss+V


OLDVERSION=`grep em:version install.rdf | sed 's/.*> *\([0-9]*\.[0-9]*\(\.[0-9]*\)*\).*/\1/' | sed 's/.*em:version="\([0-9]*\.[0-9]*\(\.[0-9]*\)*\).*/\1/'`

if [ -z "$1" -o "$1" = "-h" ] ; then
  tool=`basename $0`
  echo "$tool: Flip the version of CheckYesss extension"
  echo "	Usage: $tool <new-version>"
  echo "Note: Manual work is required for chrome/locale/<lang>/"
  echo ""
  echo "current version: $OLDVERSION"
  exit 1


echo "changing version from $OLDVERSION to $version"

sed 's/\(const *VERSION *= *\).*/\1"'$version'";/' install.js > .tmp
mv .tmp install.js

sed 's/\(<em:version>\).*\(<\/em:version>\)/\1'$version'\2/' install.rdf > .tmp
mv .tmp install.rdf

sed 's/\(dbbdd4ec.*:\).*"/\1'$version'"/' checkyesss.xml | \
  sed 's/\(<em:version>\).*\(<\/em:version>\)/\1'$version'\2/' | \
  sed 's/\(em:updateInfoURL.*newversion=\)[0-9][0-9\.]*/\1'$version'/' > .tmp
mv .tmp checkyesss.xml

sed 's/".*"/"'$version'"/' chrome/content/version.dtd > .tmp
mv .tmp chrome/content/version.dtd

sed 's/=.*/='$version'/' chrome/content/ > .tmp
mv .tmp chrome/content/

FreeBSD-CVSweb <>