diff options
| author | Theodore Tso <tytso@mit.edu> | 1994-11-02 01:52:41 +0000 |
|---|---|---|
| committer | Theodore Tso <tytso@mit.edu> | 1994-11-02 01:52:41 +0000 |
| commit | 9f1e362cbc9a8b57d8c0e7d02ba54cbdf375e1dc (patch) | |
| tree | 6ed61ac3952863aa95706174c47b5d1cb35ac429 /src/util/libupdate.sh | |
| parent | 7b392735e1eb9682675d6738b3e5bde36c635ec1 (diff) | |
| download | krb5-9f1e362cbc9a8b57d8c0e7d02ba54cbdf375e1dc.tar.gz krb5-9f1e362cbc9a8b57d8c0e7d02ba54cbdf375e1dc.tar.xz krb5-9f1e362cbc9a8b57d8c0e7d02ba54cbdf375e1dc.zip | |
Use library.stamp to determine whether or not $arcmd needs to be rerun
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4610 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/libupdate.sh')
| -rw-r--r-- | src/util/libupdate.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/libupdate.sh b/src/util/libupdate.sh index b036a5892..c56775f01 100644 --- a/src/util/libupdate.sh +++ b/src/util/libupdate.sh @@ -21,8 +21,10 @@ library=$1 oblist=$2 dir=$3 -if test "$force" != yes -a -f $library && \ - ls -lt $library $oblist | sed 1q | grep $library$ > /dev/null || \ +stamp=`echo $library | sed -e 's/.a$/.stamp/'` + +if test "$force" != yes -a -f $stamp && \ + ls -lt $stamp $oblist | sed 1q | grep $stamp$ > /dev/null || \ test -z "`cat $oblist`" then exit 0 @@ -30,7 +32,6 @@ fi echo "Updating library $library from $oblist" -touch $library $arcmd $library `cat $oblist | \ sed -e "s;^\([^ ]*\);$dir/\1;g" -e "s; \([^ ]*\); $dir/\1;g"` |
