summaryrefslogtreecommitdiffstats
path: root/upd-instroot
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-22 00:34:33 +0000
committerMatt Wilson <msw@redhat.com>1999-08-22 00:34:33 +0000
commit1ec94bab5fe0a4ef1de40a2fbc65ae2db35980ed (patch)
tree5275517ed4f22f29c965afd18ea5ca33400bcf6b /upd-instroot
parent26f6108ddfa8ae8e8dc8ec6bda7155201a2816a7 (diff)
downloadanaconda-1ec94bab5fe0a4ef1de40a2fbc65ae2db35980ed.tar.gz
anaconda-1ec94bab5fe0a4ef1de40a2fbc65ae2db35980ed.tar.xz
anaconda-1ec94bab5fe0a4ef1de40a2fbc65ae2db35980ed.zip
squeeze stage2 a bit more
Diffstat (limited to 'upd-instroot')
-rwxr-xr-xupd-instroot31
1 files changed, 22 insertions, 9 deletions
diff --git a/upd-instroot b/upd-instroot
index 70356498f..12d87ed14 100755
--- a/upd-instroot
+++ b/upd-instroot
@@ -6,6 +6,9 @@ if [ -z "$1" -o ! -d "$1" ]; then
exit 1
fi
+HOMEDIR=`pwd`
+echo HOMEDIR $HOMEDIR
+
pythondeps() {
DIR=$1
@@ -180,6 +183,9 @@ done
rm -f $KEEPFILE $KEEPFILEGR
+make install DESTDIR=$DEST > /dev/null
+make install DESTDIR=$DESTGR > /dev/null
+
for p in $DEST $DESTGR; do
find $p -type d | xargs chmod 755
@@ -203,10 +209,17 @@ for p in $DEST $DESTGR; do
rm -f $p/ldconfig
find $p -name "*.so" | xargs strip
+done
+
+pythondeps $DEST
+for p in $DEST $DESTGR; do
find $p -name "*.py" | while read fn; do
if [ -f ${fn}c ]; then
- rm -f $fn
+ rm -f ${fn}c
+ fi
+ if [ -f ${fn}o ]; then
+ rm -f ${fn}o
fi
done
done
@@ -215,11 +228,6 @@ done
rm -rf $DESTGR/usr/X11R6/lib/X11/xkb/compiled
ln -s /tmp $DESTGR/usr/X11R6/lib/X11/xkb/compiled
-make install DESTDIR=$DEST > /dev/null
-make install DESTDIR=$DESTGR > /dev/null
-
-pythondeps $DEST
-
# this is only for the minimal second stage
cd $DEST/usr/lib
@@ -228,13 +236,18 @@ pythondeps $DEST
ls libnewt* libslang* | cpio --quiet -H crc -o |
gzip -9 > slang-newt.cgz
rm -f libnewt* libslang*
- cd -
cd $DEST/usr/bin
echo python1.5 | cpio --quiet -H crc -o | gzip -9 > python1.5.cgz
rm -f python python1.5
ln -s python1.5 python
mv anaconda anaconda.real
- cd -
- cp -a anaconda-stub $DEST/usr/bin/anaconda
+ cd $DEST/lib
+ ls libcom* libcrypt* libdl* libe2p* libext2* libm* libnss* libnsl* \
+ libpthread* libss* libtermcap* libuuid* \
+ | cpio --quiet -H crc -o | gzip -9 > libs.cgz
+ rm -f libcom* libcrypt* libdl* libe2p* libext2* libm* libnss* libnsl* \
+ libpthread* libss* libtermcap* libuuid* \
+
+ cp -a $HOMEDIR/anaconda-stub $DEST/usr/bin/anaconda