summaryrefslogtreecommitdiff
blob: 357aaf09915e48162890ac773738980c168a952e (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
27
28
#!/bin/sh

# This is meant to take over the work done by the install.sh files provided
# with the ltsp downloads.

SOURCE_DIR=$1
DEST_DIR=$2

if test x$SOURCE_DIR = x -o \! -d $SOURCE_DIR ; then
	echo "*** Bad source dir!"
	exit 1
fi

if test x$DEST_DIR = x -o \! -d $SOURCE_DIR ; then
	echo "*** Bad dest dir!"
	exit 1
fi

# do the actual copy

find $SOURCE_DIR -print | cpio -pmud --quiet $DEST_DIR
RS=$?
if test $RS -ne 0 ; then
	echo "*** ERROR COPYING $SOURCE_DIR to $DEST_DIR"
	exit 1
fi