Use library.stamp to determine whether or not $arcmd needs to be rerun
authorTheodore Tso <tytso@mit.edu>
Wed, 2 Nov 1994 01:52:41 +0000 (01:52 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 2 Nov 1994 01:52:41 +0000 (01:52 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4610 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ChangeLog
src/lib/krb5/Makefile.in
src/util/ChangeLog
src/util/libupdate.sh

index a08c874f0dee5b6bd163251c9a65cf5a27da838f..0d90c7d70838fb70ff1819bd2fc1187eba8f0b1e 100644 (file)
@@ -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.
index 56838ac0c5acec08797497adf5b1b7cfbc9c2194..339e09f9bd062f9a4ab3475e410ac444cd61befd 100644 (file)
@@ -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
index 5239085a9bcc8cc7f6037302a1e8ebb629acafb6..98c29551e743ed55631bf931e8383dad30ddf71b 100644 (file)
@@ -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.
index b036a589221ad33b2d24f7137b79210c9c275aaf..c56775f018dd905029fd50f809c5f76023c6b5a1 100644 (file)
@@ -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"`