Added tscompare files.

This commit is contained in:
Harry Moffat 2006-04-30 23:29:06 +00:00
parent a9baaafd30
commit e64d92439b
5 changed files with 54 additions and 0 deletions

13
bin/tscompare Executable file
View file

@ -0,0 +1,13 @@
#!/bin/csh
#
# Test whether $1 has a modification time
# greater than $2
#
test $1 -nt $2
set tres = $status
# echo "tres = " $tres
if ( $tres == "0" ) then
exit 0
endif
# echo we are here
exit 1

8
bin/tscompare_alwaystrue Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
#
# Test whether $1 has a modification time
# greater than $2
#
# This is the default base case, if no other
# script works.
exit 0

13
bin/tscompare_csh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/csh
#
# Test whether $1 has a modification time
# greater than $2
#
test $1 -nt $2
set tres = $status
# echo "tres = " $tres
if ( $tres == "0" ) then
exit 0
endif
# echo we are here
exit 1

10
bin/tscompare_ksh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/ksh
#
# Test whether $1 has a modification time
# greater than $2
#
if test $1 -nt $2 ; then
exit 0
fi
#echo we are here
exit 1

10
bin/tscompare_sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
#
# Test whether $1 has a modification time
# greater than $2
#
if test $1 -nt $2 ; then
exit 0
fi
#echo we are here
exit 1