summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois Charette <francois@archlinux.org>2009-09-18 21:39:37 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-18 13:12:44 -0700
commita5651376b489e63cf48da82d4c82958205660837 (patch)
treef0f2dc1a4ffed54c6111eebc416cfc2537a564b8
parent956108914220bf2657fcf42e0c3211553bcf7aca (diff)
downloaddevtools32-a5651376b489e63cf48da82d4c82958205660837.tar.xz
Automate rm of repo-*86* when commiting "any" pkg
This commit integrates part of the functionality of commitpkg2any in the standard commitpkg script. If the package is for arch=any and there exists ../repos/$repo-{i686,x86_64}, then these are removed. NB: I believe commitpkg2any should be removed, as it encourages converting a pkg to arch=any with the same $pkgver. It is better practice to wait for a new version before releasing the pkg with arch=any. It also saves bandwidth! Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xcommitpkg10
1 files changed, 10 insertions, 0 deletions
diff --git a/commitpkg b/commitpkg
index 1b1fc46..7b9c133 100755
--- a/commitpkg
+++ b/commitpkg
@@ -119,4 +119,14 @@ if [ $? -ne 0 ]; then
fi
echo "===> Tagged for $repo-$CARCH"
+if [ "$CARCH" == "any"]; then
+ if [ -d ../repos/${repo}-i686 -a -d ../repos/${repo}-x86_64 ]; then
+ pushd ..
+ svn rm $repo-i686
+ svn rm $repo-x86_64
+ svn commit -m "removed $repo-i686 and $repo-x86_64 for $pkgname"
+ popd
+ fi
+fi
+
# vim:ft=sh:ts=4:sw=4:et: