Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change version script update new files for new site

  • Loading branch information...
commit e34dce19e3dc08cf79dc56b05ee00e49d37e2dcb 1 parent 51de7a5
@jcutler authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 changeVersion
View
9 changeVersion
@@ -7,6 +7,7 @@ CH=$WDIR/chrome/manifest.json
SF=$WDIR/missinge.safariextension/Info.plist
SFst=$WDIR/missinge.safariextension/Settings.plist
INDEX=$WDIR/site/index.html
+UPDATE=$WDIR/site/update.html
CURRVER=$WDIR/site/currentVersion.js
sed -e 's/"version": "[^"]*"/"version": "'$1'"/' $FF > $FF.new
@@ -27,8 +28,10 @@ rm $SF.new
sed -e 's/<string>MISSINGEVERSION<\/string>/<string>'$1'<\/string>/' $SFst.template > $SFst
sed -e 's/<div version="[^"]*" id="versioncheck"/<div version="'$1'" id="versioncheck"/' $INDEX > $INDEX.new
-sed -e 's/<a href="faq#update">Update to v[0-9\.]* now<\/a>/<a href="faq#update">Update to v'$1' now<\/a>/' $INDEX.new > $INDEX
-sed -e 's/<span id="download_version">Version [0-9\.]*<\/span>/<span id="download_version">Version '$1'<\/span>/' $INDEX > $INDEX.new
-mv $INDEX.new $INDEX
+sed -e 's/<span id="download_version">Version [0-9\.]*<\/span>/<span id="download_version">Version '$1'<\/span>/' $INDEX.new > $INDEX
+rm $INDEX.new
+
+sed -e 's/<div version="[^"]*" id="versioncheck"/<div version="'$1'" id="versioncheck"/' $UPDATE > $UPDATE.new
+mv $UPDATE.new $UPDATE
echo "var currentVersion=\"$1\";" > $CURRVER
Please sign in to comment.
Something went wrong with that request. Please try again.