summaryrefslogtreecommitdiffstats
path: root/upd-real-tree
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-07-23 00:39:38 +0000
committerErik Troan <ewt@redhat.com>1999-07-23 00:39:38 +0000
commita4b8608fe3580b16a13671b11c01055a09a1692a (patch)
tree72413213b5b003f9e00998f5d69c45c47fa172ed /upd-real-tree
parent8f31492bb357f64103b2c9c62821a9cbf5b0cffc (diff)
downloadanaconda-a4b8608fe3580b16a13671b11c01055a09a1692a.tar.gz
anaconda-a4b8608fe3580b16a13671b11c01055a09a1692a.tar.xz
anaconda-a4b8608fe3580b16a13671b11c01055a09a1692a.zip
*** empty log message ***
Diffstat (limited to 'upd-real-tree')
-rwxr-xr-xupd-real-tree26
1 files changed, 26 insertions, 0 deletions
diff --git a/upd-real-tree b/upd-real-tree
new file mode 100755
index 000000000..2f70ae093
--- /dev/null
+++ b/upd-real-tree
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+if [ -z "$1" -o ! -d "$1" ]; then
+ echo "usage: $0 <dir>"
+ exit 1
+fi
+
+DEST=$1/RedHat/instimage
+SRC=../../../RedHat/instimage
+
+if [ ! -d $SRC ]; then
+ echo "$SRC does not exist"
+ exit 1
+fi
+
+if [ ! -d $DEST ]; then
+ echo "$DEST does not exist"
+ exit 1
+fi
+
+
+rm -rf $DEST
+mkdir -p $DEST
+
+cd $SRC
+tar cSpf - . | (cd $DEST; tar xvSpf -)