summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Chu <jchu@xentac.net>2008-04-06 03:11:32 +0200
committerJason Chu <jchu@xentac.net>2008-04-06 03:11:32 +0200
commit8842f31551eb8bd26fa69853194f5c6fedab4cde (patch)
treea469efd03058db26a2b39c9d434f3211b2556bca
parente76a1b2defac8fcbd2378e1c27577cb2c6548695 (diff)
downloaddevtools-8842f31551eb8bd26fa69853194f5c6fedab4cde.tar.gz
devtools-8842f31551eb8bd26fa69853194f5c6fedab4cde.tar.xz
Add arch{co,release,rm} to devtools and make them install properly
-rw-r--r--Makefile7
-rwxr-xr-xarchco8
-rwxr-xr-xarchrelease19
-rwxr-xr-xarchrm13
4 files changed, 47 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index efeb46b..384e7e0 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,10 @@ install:
ln -sf extrapkg $(DESTDIR)/usr/bin/corepkg
ln -sf extrapkg $(DESTDIR)/usr/bin/testingpkg
ln -sf extrapkg $(DESTDIR)/usr/bin/unstablepkg
+ # arch{co,release,rm}
+ install -m 755 archco $(DESTDIR)/usr/bin
+ install -m 755 archrelease $(DESTDIR)/usr/bin
+ install -m 755 archrm $(DESTDIR)/usr/bin
# new chroot tools, only usable by root
mkdir -p $(DESTDIR)/usr/sbin
install -m 755 mkarchroot $(DESTDIR)/usr/sbin
@@ -27,3 +31,6 @@ uninstall:
rm $(DESTDIR)/usr/sbin/makechrootpkg
rm $(DESTDIR)/usr/bin/lddd
rm $(DESTDIR)/usr/bin/finddeps
+ rm $(DESTDIR)/usr/bin/archco
+ rm $(DESTDIR)/usr/bin/archrelease
+ rm $(DESTDIR)/usr/bin/archrm
diff --git a/archco b/archco
new file mode 100755
index 0000000..8609c1d
--- /dev/null
+++ b/archco
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ "$1" = "" ]; then
+ echo "Usage: archco <package name>"
+ exit 1
+fi
+
+svn co ssh://svn.archlinux.org/home/svn-packages/$1
diff --git a/archrelease b/archrelease
new file mode 100755
index 0000000..01c1472
--- /dev/null
+++ b/archrelease
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+if [ "$1" = "" ]; then
+ echo "Usage: archrelease <repo>"
+ exit 1
+fi
+
+if [ ! -d ../repos/$1 ]; then
+ pushd ..
+ svn copy trunk ../repos/$1
+ popd
+else
+ svnmerge merge ../repos/$1
+fi
+
+pushd ..
+svn commit -F trunk/svnmerge-commit-message.txt
+popd
+rm svnmerge-commit-message.txt
diff --git a/archrm b/archrm
new file mode 100755
index 0000000..855e9f5
--- /dev/null
+++ b/archrm
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [ "$1" = "" ]; then
+ echo "Usage: archrm <path to checkout>"
+ exit 1
+fi
+
+# FIXME: Check if there are uncommited changes
+#pushd $1
+#
+#popd
+
+rm -rf $1