From 13c3ea5a779c893f1f4de52f7901fbca0c2fc0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ulc?= Date: Thu, 26 Apr 2012 23:43:59 +0200 Subject: added netbeans helper script for copying of ebuilds to the main tree --- scripts/netbeans/copy_to_tree.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 scripts/netbeans/copy_to_tree.sh (limited to 'scripts') 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} " + 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 -- cgit v1.2.3