[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cd_autoup.sh



I've finally tested cd_autoup.sh, and the current version in
ftp.debian.org need this little patch.

- unset LANG, so perl doesn't print warning message about missing
  locale
- added dirname $0: the script can be called from everywhere on the
  filesystem
- fix an error regarding NETBASE and NETSTD (they aren't upgraded from
  this script


ciao

					Michele

--
Dalla Silvestra Michele    dalla@pluto.linux.it   dalla@debian.org
Key fingerprint = 68 02 A9 C7 FB 05 9E 9C  C7 B6 4A 13 61 25 5B 43


--- cd_autoup.sh.orig	Mon Aug  3 10:27:00 1998
+++ cd_autoup.sh	Mon Aug  3 00:52:21 1998
@@ -38,6 +38,7 @@
 
 DPKG="$(which dpkg)"
 LDCONFIG=$(which ldconfig)
+unset LANG
 
 # uncomment for debugging
 # set -x
@@ -75,7 +76,7 @@
          $PKGS_LIBGDBM $PKGS_PERLBASE $PKGS_PERL $PKGS_MOREDPKG 
          $PKGS_NETBASE $PKGS_NETSTD"
 
-        DM=../debian/hamm/hamm/$ARCH
+        DM=`dirname $0`/../debian/hamm/hamm/$ARCH
 
         SEDSCRIPT="s:\([^ /]*/\):$DM/\1:g"
 
@@ -96,7 +97,8 @@
 PKGS_PERLBASE=$( echo "$PKGS_PERLBASE" | sed -e "$SEDSCRIPT" )
 PKGS_PERL=$( echo "$PKGS_PERL" | sed -e "$SEDSCRIPT" )
 PKGS_MOREDPKG=$( echo "$PKGS_MOREDPKG" | sed -e "$SEDSCRIPT" )
-PKGS_NET=$( echo "$PKGS_NET" | sed -e "$SEDSCRIPT" )
+PKGS_NETBASE=$( echo "$PKGS_NETBASE" | sed -e "$SEDSCRIPT" )
+PKGS_NETSTD=$( echo "$PKGS_NETSTD" | sed -e "$SEDSCRIPT" )
 
 # sanity check that we can find the packages
 


Reply to: