Update of /cvsroot/linux-vax/toolchain/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7018
Modified Files:
README
Added Files:
copy_directory.sh
Log Message:
- copy_directory.sh copies the source direcory's contents into a
destionation directory.
Index: README
===================================================================
RCS file: /cvsroot/linux-vax/toolchain/scripts/README,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- README 14 Apr 2005 19:54:25 -0000 1.1
+++ README 14 Apr 2005 20:04:38 -0000 1.2
@@ -4,6 +4,7 @@
Unfortunately, the VAX toolchain isn't yet complete, but we're
working on it. Here's a description of the scripts:
+
vax_toolchain_config
~~~~~~~~~~~~~~~~~~~~
This script is ment to be sourced by you into your shell. It'll set some
@@ -20,3 +21,10 @@
$ source /path/to/vax_toolchain_config
+
+copy_directory.sh
+~~~~~~~~~~~~~~~~~
+This is a helper script that's called internally. You'd of course call it
+manually, but it's of little use... It'll copy the first directory's
+contents into the second directory.
+
--- NEW FILE: copy_directory.sh ---
#!/bin/sh
#
# $1 - source directory
# $2 - destination directory
#
function copy_directory() {
echo "Copying ${1} to ${2}"
(cd "${1}" && tar cpf - .;) | (cd "${2}" && tar xpf -;)
}
if [ $# -ne 2 ]; then
echo "$0 <src-dir> <dest-dir>" >&2
exit 1
fi
if [ ! -d "${1}" ]; then
echo "${1} is not a directoy." >&2
exit 1
fi
if [ ! -d "${2}" ]; then
echo "${2} is not a directoy." >&2
exit 1
fi
copy_directory "${1}" "${2}"
|