2 # Update the build version file for am-utils
3 # Erez Zadok <ezk AT cs.columbia.edu>
11 egrep AMU_BUILD_VERSION
$file |
while read a b vers
14 echo '/* do not edit this file by hand */' > $file
15 echo '/* auto-generated by update_build_version script */' >> $file
16 echo '#define AMU_BUILD_VERSION '$vers >> $file
19 echo '/* do not edit this file by hand */' > $file
20 echo '/* auto-generated by update_build_version script */' >> $file
21 echo '#define AMU_BUILD_VERSION '$vers >> $file
32 build_user
=`(whoami) 2>/dev/null` || build_user
=unknown
35 echo '#define BUILD_USER "'$build_user'"' >> $file
37 build_host
=`(hostname || uname -n) 2>/dev/null` || build_host
=unknown
38 echo '#define BUILD_HOST "'$build_host'"' >> $file
40 build_date
=`(date) 2>/dev/null` || build_date
=unknown_date
41 echo '#define BUILD_DATE "'$build_date'"' >> $file