source: trunk/third/x3270/mkversion.sh @ 9081

Revision 9081, 381 bytes checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r9080, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#! /bin/sh
2# Create version.o from version.txt
3#set -x
4
5set -e
6
7. ./version.txt
8builddate=`date`
9sccsdate=`date +%y/%m/%d`
10user=${LOGNAME-$USER}
11
12trap 'rm -f version.c' 0 1 2 15
13
14cat <<EOF >version.c
15char *build = "x3270 v$version $builddate $user";
16char *app_defaults_version = "$adversion";
17static char sccsid[] = "@(#)x3270 v$version $sccsdate $user";
18EOF
19
20${1-cc} -c version.c
Note: See TracBrowser for help on using the repository browser.