Last change
on this file since 14575 was
8804,
checked in by ascheibe, 12 years ago
|
#1937 Improved Bash prebuild event script
|
-
Property svn:executable set to
*
|
File size:
594 bytes
|
Rev | Line | |
---|
[8440] | 1 | export AIFile=$ProjectDir/Properties/AssemblyInfo.cs.frame |
---|
| 2 | export PluginFile=$ProjectDir/Plugin.cs.frame |
---|
| 3 | |
---|
[8600] | 4 | command_exists () { |
---|
[8804] | 5 | command -v "$1" |
---|
[8600] | 6 | } |
---|
[8440] | 7 | |
---|
[8600] | 8 | if command_exists svnwcrev ; then |
---|
| 9 | if [ -f $AIFile ]; |
---|
| 10 | then |
---|
| 11 | svnwcrev $ProjectDir $AIFile $ProjectDir/Properties/AssemblyInfo.cs |
---|
| 12 | fi |
---|
| 13 | |
---|
| 14 | if [ -f $PluginFile ]; |
---|
| 15 | then |
---|
| 16 | svnwcrev $ProjectDir $PluginFile $ProjectDir/Plugin.cs |
---|
| 17 | fi |
---|
| 18 | else |
---|
| 19 | if [ -f $AIFile ]; |
---|
| 20 | then |
---|
| 21 | sed 's/\$WCREV\$/'0'/g' $AIFile > $ProjectDir/Properties/AssemblyInfo.cs |
---|
| 22 | fi |
---|
| 23 | |
---|
| 24 | if [ -f $PluginFile ]; |
---|
| 25 | then |
---|
| 26 | sed 's/\$WCREV\$/'0'/g' $PluginFile > $ProjectDir/Plugin.cs |
---|
| 27 | fi |
---|
[8804] | 28 | fi |
---|
| 29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.