-
Notifications
You must be signed in to change notification settings - Fork 12
/
tmake
executable file
·27 lines (20 loc) · 705 Bytes
/
tmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/csh
##########################################################################
#### This script creates the LEV00 hat file that contains version number
#### and the build date.
##########################################################################
## get the todays date in the hat() routine
date > tmp1
set time=`cat tmp1`
/bin/rm tmp1
## get the version number into the hat() routine
set ver=$1
echo $ver $time
echo " write(*,*)'>>>>>>>> Version : $ver '" > build.hat
echo " write(*,*)'>>>>>>>> Build : $time '" >> build.hat
cat build.hat
#################################################################
if( -e hat.o ) then
/bin/rm hat.o
endif
echo "Done\!"