[arch-dev-public] [Patch] archco: Added community repo support
Eric Bélanger
snowmaniscool at gmail.com
Thu Aug 13 17:40:48 EDT 2009
Hi,
Attached and inline is a patch to add community repo support to
archco. Feel free to change comco to a more appropriate name if you
want.
diff -Naur orig/Makefile new/Makefile
--- orig/Makefile 2009-08-13 17:31:45.000000000 -0400
+++ new/Makefile 2009-08-13 17:34:00.000000000 -0400
@@ -13,6 +13,7 @@
install -m 755 archco $(DESTDIR)/usr/bin
install -m 755 archrelease $(DESTDIR)/usr/bin
install -m 755 archrm $(DESTDIR)/usr/bin
+ ln -sf archco $(DESTDIR)/usr/bin/comco
# new chroot tools, only usable by root
mkdir -p $(DESTDIR)/usr/sbin
install -m 755 mkarchroot $(DESTDIR)/usr/sbin
@@ -36,3 +37,4 @@
rm $(DESTDIR)/usr/bin/archco
rm $(DESTDIR)/usr/bin/archrelease
rm $(DESTDIR)/usr/bin/archrm
+ rm $(DESTDIR)/usr/bin/comco
diff -Naur orig/archco new/archco
--- orig/archco 2009-08-13 17:09:05.000000000 -0400
+++ new/archco 2009-08-13 17:35:20.000000000 -0400
@@ -1,11 +1,18 @@
#!/bin/bash
-# TODO make this work for community too
if [ "$1" = "" ]; then
echo "Usage: archco <package name> [<package name>]"
exit 1
fi
-for i in "$@"; do
- svn co svn+ssh://svn.archlinux.org/srv/svn-packages/$i
-done
+cmd=$(basename $0)
+
+if [ "$cmd" == "archco" ]; then
+ for i in "$@"; do
+ svn co svn+ssh://svn.archlinux.org/srv/svn-packages/$i
+ done
+elif [ "$cmd" == "comco" ]; then
+ for i in "$@"; do
+ svn co svn+ssh://aur.archlinux.org/srv/svn-packages/$i
+ done
+fi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: archco.patch
Type: text/x-patch
Size: 1268 bytes
Desc: not available
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090813/bd06745b/attachment.bin>
More information about the arch-dev-public
mailing list