Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (22 sloc) 0.827 kb
#!/bin/bash
WDIR=`dirname $0`
FF=$WDIR/firefox/missinge/package.json
FFpt=$WDIR/firefox/missinge/data/version
CH=$WDIR/chrome/manifest.json
SF=$WDIR/missinge.safariextension/Info.plist
SFst=$WDIR/missinge.safariextension/Settings.plist
sed -e 's/"version": "[^"]*"/"version": "'$1'"/' $FF > $FF.new
mv $FF.new $FF
echo $1 > $FFpt
sed -e 's/"version": "[^"]*"/"version": "'$1'"/' $CH > $CH.new
mv $CH.new $CH
sed -e '/CFBundleShortVersionString<\/key>/{
N
s/CFBundleShortVersionString<\/key>\n\t<string>[^<]*/CFBundleShortVersionString<\/key>\n\t<string>'$1'/
}' $SF > $SF.new
sed -e '/CFBundleVersion<\/key>/{
N
s/CFBundleVersion<\/key>\n\t<string>[^<]*/CFBundleVersion<\/key>\n\t<string>'$2'/
}' $SF.new > $SF
rm $SF.new
sed -e 's/<string>MISSINGEVERSION<\/string>/<string>'$1'<\/string>/' $SFst.template > $SFst
Jump to Line
Something went wrong with that request. Please try again.