]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/amd/m4/update_build_version
This commit was generated by cvs2svn to compensate for changes in r138583,
[FreeBSD/FreeBSD.git] / contrib / amd / m4 / update_build_version
1 #!/bin/sh
2 # Update the build version file for am-utils
3 # Erez Zadok <ezk@cs.columbia.edu>
4 #set -x
5
6 file="build_version.h"
7 vers=1
8
9 if test -f $file
10 then
11     egrep AMU_BUILD_VERSION $file | while read a b vers
12     do
13         vers=`expr $vers + 1`
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
17     done
18 else
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
22 fi