diff options
author | Matt Wilson <msw@redhat.com> | 2000-01-20 01:15:49 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-01-20 01:15:49 +0000 |
commit | 7a9d7c6cba886660b797dd145a328e043d4c019d (patch) | |
tree | ce723b36c0bffe67407d86240af55b99fb40f8ff /upd-instroot | |
parent | 78f3ca9bcffb27af7405842eae7ad5c4352748d8 (diff) | |
download | anaconda-7a9d7c6cba886660b797dd145a328e043d4c019d.tar.gz anaconda-7a9d7c6cba886660b797dd145a328e043d4c019d.tar.xz anaconda-7a9d7c6cba886660b797dd145a328e043d4c019d.zip |
tied to RH build system ;-)
Diffstat (limited to 'upd-instroot')
-rwxr-xr-x | upd-instroot | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/upd-instroot b/upd-instroot index 28db60956..871eeef4e 100755 --- a/upd-instroot +++ b/upd-instroot @@ -1,8 +1,8 @@ #!/bin/bash -if [ -z "$1" -o ! -d "$1" ]; then - echo "$0: updates instimage from a Red Hat RPMS directory" - echo "usage: $0 <dir>" +if [ -z "$1" ]; then + echo "$0: updates instimage from a Red Hat RPMS tree" + echo "usage: $0 <tree>" exit 1 fi @@ -35,7 +35,7 @@ pythondeps() { rm -rf $DIR/dev } -SRC=$1/RedHat/RPMS +SRC=$1 mkdir -p ../trees/hdimage cd ../trees/hdimage @@ -50,18 +50,25 @@ cd - echo "DEST is $DEST" echo "DESTGR is $DESTGR" -PACKAGES="glibc-2 ldconfig setup e2fsprogs-1 XFree86-libs XFree86-SVGA +PACKAGES="glibc ldconfig setup e2fsprogs XFree86-libs XFree86-SVGA XFree86-S3 XFree86-S3V XFree86-Mach32 XFree86-Mach64 XFree86-FBDev XFree86-I128 XFree86-3DLabs XFree86-VGA16 - XFree86-Sun XFree86-TGA XFree86-75dpi-fonts XFree86-100dpi-fonts - XFree86-ISO8859-2 XFree86-cyrillic-fonts XFree86-3. - xpm-3 glib- gtk+- gnome-libs python-1 newt imlib-1 libpng - libtiff libjpeg- libtermcap-2 zlib rpm rpm-devel rpm-python ash- bash- - pygtk- pygnome- util-linux procps esound-0 audiofile-0 - kernel-pcmcia-cs Xconfigurator raidtools- locale-ja - open- cpio- tar- fileutils- net-tools- grep- sed- mt-st- gzip- - iputils- traceroute- sh-utils- textutils- pine- less- - rsh- ncurses- popt mtools- ftp- readline- mount- modutils-" + XFree86-75dpi-fonts XFree86-100dpi-fonts + XFree86-ISO8859-2 XFree86-cyrillic-fonts XFree86 + xpm glib gtk+ gnome-libs python newt imlib libpng + libtiff libjpeg libtermcap zlib rpm rpm-devel rpm-python ash bash + pygtk pygnome util-linux procps esound audiofile + kernel-pcmcia-cs Xconfigurator raidtools + open cpio tar fileutils net-tools grep sed mt-st gzip + iputils traceroute sh-utils textutils pine less + rsh ncurses popt mtools ftp readline mount modutils" + +if [ $ARCH = "sparc" ]; then + PACKAGES="$PACKAGES XFree86-Sun" +fi +if [ $ARCH = "alpha" ]; then + PACKAGES="$PACKAGES XFree86-TGA" +fi KEEPFILE=/tmp/keepfile.$$ cat > $KEEPFILE <<EOF @@ -303,17 +310,9 @@ usr/share/fonts/ISO8859-2/100dpi/fonts* EOF fi -for I in $PACKAGES; do - for J in `ls $SRC/$I* 2> /dev/null`; do - if [ "$I" != "rpm-devel" ]; then - if ! echo $J | egrep "(devel|sparcv9)" > /dev/null; then - RPMS="$RPMS $J" - fi - else - RPMS="$RPMS $J" - fi - done -done +# latest finds the latest version of a binary RPM for a given arch; if you +# aren't at Red Hat, you'll need to write your own! +RPMS=$(latest --arch $ARCH $SRC $PACKAGES) rm -rf $DEST; mkdir -p $DEST/usr/sbin rm -rf $DESTGR; mkdir -p $DESTGR/usr/sbin |