blob: e221abd3ac29255849fa83b92f4a5671fabf7d4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
# Update the build version file for am-utils
# Erez Zadok <ezk@cs.columbia.edu>
#set -x
file="build_version.h"
vers=1
if test -f $file
then
egrep AMU_BUILD_VERSION $file | while read a b vers
do
vers=`expr $vers + 1`
echo '/* do not edit this file by hand */' > $file
echo '/* auto-generated by update_build_version script */' >> $file
echo '#define AMU_BUILD_VERSION '$vers >> $file
done
else
echo '/* do not edit this file by hand */' > $file
echo '/* auto-generated by update_build_version script */' >> $file
echo '#define AMU_BUILD_VERSION '$vers >> $file
fi
|