diff options
author | Matt Wilson <msw@redhat.com> | 2000-05-30 20:47:03 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-05-30 20:47:03 +0000 |
commit | 68e0950d4f709db8a24ced24e86b892a0ca8c896 (patch) | |
tree | 3c1ed6248482d259dbd12828b806ef3b6ef26527 /scripts/pythondeps | |
parent | 71e90c47ce6ea27311176668830adc7f5d80a836 (diff) | |
download | anaconda-68e0950d4f709db8a24ced24e86b892a0ca8c896.tar.gz anaconda-68e0950d4f709db8a24ced24e86b892a0ca8c896.tar.xz anaconda-68e0950d4f709db8a24ced24e86b892a0ca8c896.zip |
debug
Diffstat (limited to 'scripts/pythondeps')
-rw-r--r-- | scripts/pythondeps | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/pythondeps b/scripts/pythondeps index 66eb6e6b2..66362bc36 100644 --- a/scripts/pythondeps +++ b/scripts/pythondeps @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x if [ -z "$1" ]; then echo "Usage: $0 /path/to/tree" @@ -8,13 +8,15 @@ fi # remove all non unused python files DIR=$1 +ARCH=`uname -m | sed -e 's/i.86/i386/'` + mkdir -p $DIR/proc mount -t proc /proc $DIR/proc if [ $ARCH = "sparc" ]; then mkdir $DIR/dev mknod $DIR/dev/openprom c 10 139 fi -(chroot $DIR /usr/bin/anaconda -m dir://mnt/source --test --text --traceonly; \ +(/usr/sbin/chroot $DIR /usr/bin/anaconda -m dir://mnt/source --test --text --traceonly; \ cd $DIR; find usr/lib/python* usr/lib/anaconda -type f | sed 's,^,/,' ) | \ sort | uniq -u | sed s,^,./, | while read fn; do [ ! -d $DIR/$fn ] && rm $DIR/$fn |