Generate md5 sums for SICS server files so we can check for local modifications
during a release cycle. r2704 | ffr | 2008-09-24 12:23:41 +1000 (Wed, 24 Sep 2008) | 3 lines
This commit is contained in:
committed by
Douglas Clowes
parent
a2289207c0
commit
79d54fb1fe
26
site_ansto/instrument/util/mk_SICSmd5.sh
Executable file
26
site_ansto/instrument/util/mk_SICSmd5.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
# Generate md5 sums for the files in the SICS server directory.
|
||||
if [ ! -d server ]
|
||||
then
|
||||
echo "There must be a 'server' subdirectory"
|
||||
exit 1
|
||||
fi
|
||||
relnum_file="server/server_config.tcl"
|
||||
relnum=`grep '# *RELEASE_NUMBER:' $relnum_file | cut -d: -f2|tr -d '[:space:]'`
|
||||
if [ $relnum = "" ]
|
||||
then
|
||||
echo "Could not find RELEASE_NUMBER: in $relnum_file"
|
||||
exit 1
|
||||
else
|
||||
echo "RELEASE_NUMBER is $relnum"
|
||||
fi
|
||||
md5file="SICS-${relnum}-server-md5sums.txt"
|
||||
if [ ! -f $md5file ]
|
||||
then
|
||||
find server| xargs -i md5sum {} > $md5file
|
||||
echo $md5file
|
||||
chmod 444 $md5file
|
||||
else
|
||||
echo "$md5file already exists"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user