OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 23-Feb-2003 20:35:00
Branch: HEAD Handle: 2003022319350000
Modified files:
openpkg-src/openpkg openpkg.boot
Log:
ok, ok, now also check for uuencode to make sure people do not
complain if their stripped down Linux box fails to build the bootstrap
just because uuencode is not available
Summary:
Revision Changes Path
1.20 +17 -1 openpkg-src/openpkg/openpkg.boot
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/openpkg/openpkg.boot
============================================================================
$ cvs diff -u -r1.19 -r1.20 openpkg.boot
--- openpkg-src/openpkg/openpkg.boot 5 Feb 2003 14:32:26 -0000 1.19
+++ openpkg-src/openpkg/openpkg.boot 23 Feb 2003 19:35:00 -0000 1.20
@@ -194,6 +194,22 @@
done
export PATH
+# find reasonable UUENCODE
+l_uuencode=''
+for t in guuencode uuencode; do
+ for p in `IFS=":"; echo . $PATH`; do
+ if [ -f "$p/$t" ]; then
+ l_uuencode="$p/$t"
+ break
+ fi
+ done
+ [ ".$l_uuencode" != . ] && break
+done
+if [ ".$l_uuencode" = . ]; then
+ echo "$0:FAILED: required UUENCODE not found"
+ exit 1
+fi
+
# find reasonable TAR
l_tar=''
for t in gtar tar; do
@@ -477,7 +493,7 @@
done
( cd $RPM_BUILD_ROOT$prefix;
$RPM_BUILD_ROOT$prefix/lib/openpkg/tar --no-recursion -cf - $files) |\
-uuencode openpkg-$v.$t.tar.Z >>$dstdir/openpkg-$v.$t.sh
+$l_uuencode openpkg-$v.$t.tar.Z >>$dstdir/openpkg-$v.$t.sh
# cleanup
echo "++ cleaning up"
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]