diff options
Diffstat (limited to 'scripts/netbeans/copy_to_tree.sh')
-rwxr-xr-x | scripts/netbeans/copy_to_tree.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/netbeans/copy_to_tree.sh b/scripts/netbeans/copy_to_tree.sh new file mode 100755 index 000000000..26162cc2b --- /dev/null +++ b/scripts/netbeans/copy_to_tree.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +ROOT=$(dirname $(dirname $(dirname $(readlink -f ${0})))) +TREE=${1} +VERSION=${2} +MESSAGE=${3} + +if [ -z "${TREE}" -o -z "${VERSION}" -o -z "${MESSAGE}" ]; then + echo "Usage: ${0} <tree> <version> <message>" + exit 1 +fi + +pushd ${ROOT} &> /dev/null + +for file in */*/*${VERSION}*.ebuild; do + cp ${file} ${TREE}${file} + pushd ${TREE}$(dirname ${file}) &> /dev/null + cvs add $(basename ${file}) + echangelog "${MESSAGE}" + ebuild $(basename ${file}) manifest + popd &> /dev/null +done + +popd &> /dev/null |