summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-01-29 14:48:10 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-01-29 14:48:10 -0500
commitf35b3a4ed063e940918d8ca28ece75ff80679944 (patch)
treee8af8c4b9df2d7b4c74adf289a66f61a0bc63613
parent6ca7a10796da3afea4dee311b2f48d7190e02fd1 (diff)
Rename a few things
- s/absrepo/absgit/ - s/pbs-(.*)-convert/pbs-convert-\1/
-rwxr-xr-xpbs-convert-absgit (renamed from pbs-absrepo-convert)9
-rwxr-xr-xpbs-convert-absgit--filterarch (renamed from pbs-absrepo-convert--filterarch)0
-rw-r--r--pbs-convert.conf8
3 files changed, 9 insertions, 8 deletions
diff --git a/pbs-absrepo-convert b/pbs-convert-absgit
index 465c2ac..30070c3 100755
--- a/pbs-absrepo-convert
+++ b/pbs-convert-absgit
@@ -1,6 +1,7 @@
#!/bin/bash -euE
-export TMPDIR="`mktemp -d --tmpdir pbs-absrepo-convert.XXXXXXXXXX`"
+cmd="${0##*/}"
+export TMPDIR="`mktemp -d --tmpdir ${cmd}.XXXXXXXXXX`"
cleanup() {
msg "$(gettext "Removing temporary files...")"
echo rm -rf "$TMPDIR"
@@ -157,7 +158,7 @@ convert-arch() {
touch "${TMPDIR}/missing-packages/${arch}.tmp"
git rewrite-branch master "$arch" \
- --tree-filter "pbs-absrepo-convert--filterarch $arch"
+ --tree-filter "${cmd}--filterarch $arch"
sort -u \
< "${TMPDIR}/missing-packages/${arch}.tmp" \
@@ -185,9 +186,9 @@ convert-arches() {
usage() {
echo "Usage: ${0##*/} SOURCE"
- echo "Convert the absrepo-format SOURCE to pbs-format"
+ echo "Convert the absgit format SOURCE to pbs format"
echo
- echo "SOURCE must be configured in /etc/libretools.d/pbs.conf"
+ echo "SOURCE must be configured in /etc/libretools.d/pbs-convert.conf"
}
main() {
diff --git a/pbs-absrepo-convert--filterarch b/pbs-convert-absgit--filterarch
index 73fa96a..73fa96a 100755
--- a/pbs-absrepo-convert--filterarch
+++ b/pbs-convert-absgit--filterarch
diff --git a/pbs-convert.conf b/pbs-convert.conf
index ee85bfa..ef896ec 100644
--- a/pbs-convert.conf
+++ b/pbs-convert.conf
@@ -4,17 +4,17 @@
rewritedir = /var/pbs-rewrite
[source "arch-packages"]
- type = absrepo
+ type = absgit
url = git://projects.archlinux.org/svntogit/packages.git
[source "arch-community"]
- type = absrepo
+ type = absgit
url = git://projects.archlinux.org/svntogit/community.git
[source "parabola-abslibre"]
- type = abstree
+ type = abslibre
url = git://projects.parabolagnulinux.org/abslibre.git
[source "parabola-abslibre-mips64el"]
- type = abstree
+ type = abslibre
url = git://projects.parabolagnulinux.org/abslibre-mips64el.git