summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Charette <francois@archlinux.org>2009-05-06 21:38:40 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-05-06 21:38:40 +0200
commit1401d5711527561ba93fd4805f81edbdd07a96e4 (patch)
tree8ffd791a36301add05b2addc1f78e4fb1bd45d06
parent2269e5c9c89032c6752d9bb78d25738919854e43 (diff)
downloaddevtools-1401d5711527561ba93fd4805f81edbdd07a96e4.tar.gz
devtools-1401d5711527561ba93fd4805f81edbdd07a96e4.tar.xz
commitpkg2any: New script
Added a script to convert an i686/x86_64 package to an 'any' architecutre package in the SVN repos Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rw-r--r--commitpkg2any33
1 files changed, 33 insertions, 0 deletions
diff --git a/commitpkg2any b/commitpkg2any
new file mode 100644
index 0000000..db6b70b
--- /dev/null
+++ b/commitpkg2any
@@ -0,0 +1,33 @@
+#!/bin/bash
+# This script commits an existing package as an 'any'
+# package. It is simply to help aid in the conversion
+# to any-based packages
+
+if [ $# -ne 1 ]; then
+ echo "Syntax: $(basename $0) <repo>"
+ exit 1
+fi
+
+repo=$1
+
+source PKGBUILD
+
+sed -i 's|^arch=.\+$|arch=(any)|' PKGBUILD
+
+svn commit -m "upgpkg: $pkgname $pkgver-$pkgrel
+ Converted to arch=any" > /dev/null
+
+archrelease $repo-any
+if [ $? -ne 0 ]; then
+ echo "Cancelled"
+ exit 1
+fi
+echo "===> Tagged for $repo-any"
+
+pushd ..
+svn rm $repo-i686
+svn rm $repo-x86_64
+svn commit -m "removed $repo-i686 and $repo-x86_64 for $pkgname"
+popd
+
+echo "Don't forget to run \"/arch/db-update $repo\" on gerolde"