diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-05-27 20:24:22 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-05-27 20:24:22 +0200 |
commit | 5f8efdc0eaa394fcdcb1a2b5d04048e1a080aad9 (patch) | |
tree | 70b5175a2b504cdbb745b024e4ba83014b380892 | |
parent | 966c53e8ce0b11b9cd7fb88a497f2c086c682676 (diff) | |
parent | 06c8428afdeb31c5514f27def63a13dad782ff6d (diff) | |
download | dbscripts-5f8efdc0eaa394fcdcb1a2b5d04048e1a080aad9.tar.gz dbscripts-5f8efdc0eaa394fcdcb1a2b5d04048e1a080aad9.tar.xz |
Merge branch 'master' of /srv/projects/git/dbscripts
-rwxr-xr-x | testing2x | 58 | ||||
l--------- | testing2x64 | 1 |
2 files changed, 59 insertions, 0 deletions
diff --git a/testing2x b/testing2x new file mode 100755 index 0000000..7096f1d --- /dev/null +++ b/testing2x @@ -0,0 +1,58 @@ +#!/bin/bash + +if [ -f "/etc/makepkg.conf" ]; then + . /etc/makepkg.conf +else + echo "/etc/makepkg.conf does not exist!" + exit 1 +fi + +case "$0" in + *64) + arch="x86_64" + ;; + *) + arch="i686" + ;; +esac +svnpath="file:///home/svn-packages" +WORKDIR="$(mktemp -d /tmp/testing2x.XXXXXX)" + +cleanup() { + rm -rf "${WORKDIR}" + [ -n "$1" ] && exit $1 +} + +ctrl_c() { + echo "Interrupted" >&2 + cleanup 0 +} + +trap ctrl_c 2 +trap cleanup 0 + +cd "${WORKDIR}" +/usr/bin/svn checkout -N ${svnpath} checkout +cd checkout + +for pkg in $*; do + moved=0 + /usr/bin/svn up -q ${pkg} + if [ -f "${pkg}/repos/testing-${arch}/${BUILDSCRIPT}" ]; then + for repo in core extra; do + if [ -f "${pkg}/repos/${repo}-${arch}/${BUILDSCRIPT}" ]; then + echo "===> Moving package '${pkg}': testing-${arch} -> ${repo}-${arch}" + $(dirname $0)/db-move "${pkg}" "testing" "${repo}" "${arch}" + moved=1 + break + fi + done + if [ ${moved} -eq 0 ]; then + echo "===> Warning: ${pkg} is only in testing-${arch}, cannot determine where to move it" + fi + else + echo "===> Warning: ${pkg} is not in testing-${arch}" + fi +done + +cleanup diff --git a/testing2x64 b/testing2x64 new file mode 120000 index 0000000..ff08aa7 --- /dev/null +++ b/testing2x64 @@ -0,0 +1 @@ +testing2x
\ No newline at end of file |