summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1994-11-02 01:52:41 +0000
committerTheodore Tso <tytso@mit.edu>1994-11-02 01:52:41 +0000
commit9f1e362cbc9a8b57d8c0e7d02ba54cbdf375e1dc (patch)
tree6ed61ac3952863aa95706174c47b5d1cb35ac429 /src
parent7b392735e1eb9682675d6738b3e5bde36c635ec1 (diff)
downloadkrb5-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')
-rw-r--r--src/lib/krb5/ChangeLog4
-rw-r--r--src/lib/krb5/Makefile.in3
-rw-r--r--src/util/ChangeLog3
-rw-r--r--src/util/libupdate.sh7
4 files changed, 13 insertions, 4 deletions
diff --git a/src/lib/krb5/ChangeLog b/src/lib/krb5/ChangeLog
index a08c874f0..0d90c7d70 100644
--- a/src/lib/krb5/ChangeLog
+++ b/src/lib/krb5/ChangeLog
@@ -1,5 +1,9 @@
Tue Nov 1 14:56:47 1994 (tytso@rsx-11)
+ * Makefile.in: Change the way libupdate works so that we use
+ libkrb5.stamp to determine whether or not $arcmd needs to
+ be rerun.
+
* Makefile.in:
* configure.in: Change the way the library is built to use the
libupdate script.
diff --git a/src/lib/krb5/Makefile.in b/src/lib/krb5/Makefile.in
index 56838ac0c..339e09f9b 100644
--- a/src/lib/krb5/Makefile.in
+++ b/src/lib/krb5/Makefile.in
@@ -24,6 +24,7 @@ libkrb5.a: error_tables/DONE asn.1/DONE ccache/DONE ccache/stdio/DONE \
$(LIBUPDATE) --force $@ $$i/DONE $$i ; \
done \
fi
+ touch libkrb5.stamp
install:: libkrb5_ranlib
@@ -31,4 +32,4 @@ install:: libkrb5_ranlib
$(RANLIB) $(DESTDIR)$(KRB5_LIBDIR)/libkrb5.a
clean::
- $(RM) libkrb5.a libkrb5_ranlib
+ $(RM) libkrb5.a libkrb5_ranlib libkrb5.stamp
diff --git a/src/util/ChangeLog b/src/util/ChangeLog
index 5239085a9..98c29551e 100644
--- a/src/util/ChangeLog
+++ b/src/util/ChangeLog
@@ -1,5 +1,8 @@
Tue Nov 1 14:49:00 1994 (tytso@rsx-11)
+ * libupdate.sh: Use library.stamp to determine whether or not
+ $arcmd needs to be rerun.
+
* libupdate.sh: touch the library first, before running $aradd, in
case changing the mod time of the library after running
$aradd causes problems on some systems.
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"`