summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2011-01-23 14:11:31 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2011-01-23 14:11:31 +0100
commit4d67eef2e9c799527495231f3854266706588e10 (patch)
tree3ee7008a481388f9638418124fcd577fb673b42b /scripts
parentimproved error message in helper script (diff)
downloadfordfrog-4d67eef2e9c799527495231f3854266706588e10.tar.gz
fordfrog-4d67eef2e9c799527495231f3854266706588e10.tar.bz2
fordfrog-4d67eef2e9c799527495231f3854266706588e10.zip
updated the helper script so it works in git repo
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/netbeans/create_new_release.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/netbeans/create_new_release.sh b/scripts/netbeans/create_new_release.sh
index 92dc035ca..8595f2dad 100755
--- a/scripts/netbeans/create_new_release.sh
+++ b/scripts/netbeans/create_new_release.sh
@@ -9,11 +9,10 @@ if [[ -z "${OLD}" ]] || [[ -z "${NEW}" ]] || [[ -z "${SOURCE_URL}" ]] ; then
exit 1
fi
-pushd $(dirname $(readlink -f ${0})) >/dev/null || exit 1
-pushd $(hg root) >/dev/null || exit 1
+pushd $(dirname $(dirname $(dirname $(readlink -f ${0})))) >/dev/null || exit 1
for file in */*/*${OLD}*.ebuild ; do
- hg cp ${file} $(echo ${file} | sed "s/${OLD}/${NEW}/") || exit 1
+ cp ${file} $(echo ${file} | sed "s/${OLD}/${NEW}/") || exit 1
done
sed -i "s%SOURCE_URL=.*%SOURCE_URL=\"${SOURCE_URL}\"%" */*/*${NEW}*.ebuild || exit 1
@@ -23,4 +22,3 @@ for file in */*/*${NEW}*.ebuild ; do
done
popd >/dev/null || exit 1
-popd >/dev/null || exit 1