Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/subwcrev.sh
2 views
1
#!/bin/sh
2
3
cd "`dirname "$0"`"
4
5
if test -d .git ; then
6
REV="`git svn info | grep Revision: | cut -d' ' -f2`"
7
else
8
REV="`svn info | grep Revision: | cut -d' ' -f2`"
9
fi
10
11
sed -e 's/\$WCREV\$/'$REV'/g' "$1/Properties/svnrev_template" > "$1/Properties/svnrev.cs.tmp"
12
cmp -s "$1/Properties/svnrev.cs.tmp" "$1/Properties/svnrev.cs" || cp "$1/Properties/svnrev.cs.tmp" "$1/Properties/svnrev.cs"
13
14