diff options
author | Dan McGee <dan@archlinux.org> | 2007-05-30 17:04:49 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-05-30 17:04:49 +0200 |
commit | b6387b954f7c35d0d51978aac24ca6bd6a5308fc (patch) | |
tree | a6beb14f4280b848fafc00059c7c4a54df2db8f2 /scripts/repo-remove.in | |
parent | dd926c7a1c23eab0db242184c7668f32fd4defee (diff) | |
download | pacman-b6387b954f7c35d0d51978aac24ca6bd6a5308fc.tar.gz pacman-b6387b954f7c35d0d51978aac24ca6bd6a5308fc.tar.xz |
scripts: do autoconf path replacement right
This should finally get the path replacement in our scripts right. This
is the way the autoconf package itself does it and should not need much
further tweaking.
Threw in a few trailing whitespace corrections from the scripts as well.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/repo-remove.in')
-rw-r--r-- | scripts/repo-remove.in | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/scripts/repo-remove.in b/scripts/repo-remove.in index 0bb37075..a0b4a70a 100644 --- a/scripts/repo-remove.in +++ b/scripts/repo-remove.in @@ -1,22 +1,23 @@ #!/bin/bash # -# repo-remove : remove a package entry from a given repo database file -# +# repo-remove - remove a package entry from a given repo database file +# @configure_input@ +# # Copyright (c) 2007 Dan McGee <dan@archlinux.org> -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, # USA. myver='@PACKAGE_VERSION@' @@ -93,8 +94,8 @@ if [ $# -lt 2 ]; then fi # source system and user makepkg.conf -if [ -r @SYSCONFDIR@/makepkg.conf ]; then - source @SYSCONFDIR@/makepkg.conf +if [ -r @sysconfdir@/makepkg.conf ]; then + source @sysconfdir@/makepkg.conf else echo "ERROR: /etc/makepkg.conf not found. Can not continue." >&2 exit 1 # $E_CONFIG_ERROR # TODO: error codes |