diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-24 04:20:22 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-24 04:20:22 +0000 |
commit | 8047894e194d7a54c0e1bdf0bad4d4aa76d18282 (patch) | |
tree | 0d3bea96e8b08f765fc1bacc4778977519e3059c /upd-real-tree | |
parent | 8c104265042ca2dafd89f874efd4e4e038144af5 (diff) | |
download | anaconda-8047894e194d7a54c0e1bdf0bad4d4aa76d18282.tar.gz anaconda-8047894e194d7a54c0e1bdf0bad4d4aa76d18282.tar.xz anaconda-8047894e194d7a54c0e1bdf0bad4d4aa76d18282.zip |
copy misc over as well
Diffstat (limited to 'upd-real-tree')
-rwxr-xr-x | upd-real-tree | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/upd-real-tree b/upd-real-tree index 2f70ae093..33204615e 100755 --- a/upd-real-tree +++ b/upd-real-tree @@ -7,20 +7,20 @@ fi DEST=$1/RedHat/instimage SRC=../../../RedHat/instimage +DEST1=$1/misc +SRC1=../../../misc -if [ ! -d $SRC ]; then - echo "$SRC does not exist" - exit 1 -fi +for n in $SRC $DEST $SRC1 $DEST1; do + if [ ! -d $n ]; then + echo "$n does not exist" + exit 1 + fi +done -if [ ! -d $DEST ]; then - echo "$DEST does not exist" - exit 1 -fi +rm -rf $DEST $DEST1 +mkdir -p $DEST $DEST1 +(cd $SRC; tar cSpf - . | (cd $DEST; tar xvSpf -)) -rm -rf $DEST -mkdir -p $DEST +(cd $SRC1; tar cSpf - . | (cd $DEST1; tar xvSpf -)) -cd $SRC -tar cSpf - . | (cd $DEST; tar xvSpf -) |