]> git.ozlabs.org Git - ppp.git/blobdiff - netbsd-1.1/kinstall.sh
update
[ppp.git] / netbsd-1.1 / kinstall.sh
index 15257f0cac2929ed141db02cb13a299dfe8f3e79..bf25ae23021adae0025d9a000c4427a2f0d5c709 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # This script modifies the kernel sources in /sys to install
-# ppp-2.2.  It is intended to be run in the ppp-2.2 directory.
+# ppp-2.3.  It is intended to be run in the ppp-2.3 directory.
 #
 # Paul Mackerras       11-Dec-95
 
@@ -23,15 +23,15 @@ fi
 
 # Copy new versions of files into /sys/net
 
-for f in net/if_ppp.h net/ppp-comp.h net/ppp_defs.h $SRC/bsd-comp.c \
-        $SRC/ppp-deflate.c $SRC/if_ppp.c $SRC/if_pppvar.h $SRC/ppp_tty.c \
+for f in include/net/if_ppp.h include/net/ppp-comp.h include/net/ppp_defs.h \
+         $SRC/bsd-comp.c $SRC/ppp-deflate.c \
+        $SRC/if_ppp.c $SRC/if_pppvar.h $SRC/ppp_tty.c \
         $SRC/slcompress.c $SRC/slcompress.h common/zlib.c common/zlib.h; do
   dest=$SYS/net/$(basename $f)
   if [ -f $dest ]; then
-    if ! cmp -s $f $dest; then
+    if ! diff -qBI '[  ]\$[IN][de].*:.*\$' $f $dest >/dev/null; then
       echo "Copying $f to $dest"
-      mv -f $dest $dest.orig
-      echo " (old version saved in $dest.orig)"
+      mv -f $dest $dest.orig && echo " (old version saved in $dest.orig)"
       cp $f $dest
       DOMAKE=yes
     fi