summaryrefslogtreecommitdiffstats
path: root/upd-real-tree
blob: 2f70ae0938a029835820a802adbcbddacbe6177c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 -)