Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/gensync.in
diff options
context:
space:
mode:
authorAndrew Fyfe <andrew@neptune-one.net>2007-05-28 20:49:28 +0100
committerDan McGee <dan@archlinux.org>2007-05-29 17:49:24 -0400
commit5c41d0eb4c7034998d9718f89e12f44fe872ab9a (patch)
tree92905a04a5987ab7e9ec17515417d16cffb556b4 /scripts/gensync.in
parentd255d511aa9cbfa7b3bf056908c07f5afed69b72 (diff)
Substitute config directory in scripts.
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
Diffstat (limited to 'scripts/gensync.in')
-rw-r--r--scripts/gensync.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/gensync.in b/scripts/gensync.in
index 7898f286..0639f89c 100644
--- a/scripts/gensync.in
+++ b/scripts/gensync.in
@@ -37,9 +37,9 @@ usage() {
echo
echo "note: The <destfile> name is important. It must be of the form"
echo " {treename}.db.tar.gz where {treename} is the name of the custom"
- echo " package repository you configured in /etc/pacman.conf. The"
+ echo " package repository you configured in @SYSCONFDIR@/pacman.conf. The"
echo " generated database must reside in the same directory as your"
- echo " custom packages (also configured in /etc/pacman.conf)"
+ echo " custom packages (also configured in @SYSCONFDIR@/pacman.conf)"
echo
echo "example: gensync /var/abs/local /home/mypkgs/custom.db.tar.gz"
echo
@@ -94,10 +94,10 @@ if [ $# -lt 2 ]; then
fi
# source system and user makepkg.conf
-if [ -r /etc/makepkg.conf ]; then
- source /etc/makepkg.conf
+if [ -r @SYSCONFDIR@/makepkg.conf ]; then
+ source @SYSCONFDIR@/makepkg.conf
else
- echo "ERROR: /etc/makepkg.conf not found. Can not continue." >&2
+ echo "ERROR: @SYSCONFDIR@/makepkg.conf not found. Can not continue." >&2
exit 1 # $E_CONFIG_ERROR # TODO: error codes
fi