summaryrefslogtreecommitdiff
path: root/scripts/makepkg.in
diff options
context:
space:
mode:
authorAndrew Fyfe <andrew@neptune-one.net>2007-05-31 17:21:37 +0100
committerDan McGee <dan@archlinux.org>2007-05-31 14:30:41 -0400
commite422b71a48c9f7637595c510d8766f0f38b1114e (patch)
tree33fa3c11e1ccc9e0e6a10ad50d6e4b2b249c181e /scripts/makepkg.in
parent139d3c5e99fa6cb28fba7883123891a73fbb2421 (diff)
downloadpacman-e422b71a48c9f7637595c510d8766f0f38b1114e.tar.xz
Add autotool substitution for SRCEXT.
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.in')
-rw-r--r--scripts/makepkg.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/makepkg.in b/scripts/makepkg.in
index 1bc6f3cc..553221be 100644
--- a/scripts/makepkg.in
+++ b/scripts/makepkg.in
@@ -666,7 +666,7 @@ create_srcpackage() {
done
# TODO make package extension configurable like $PKGEXT
- local pkg_file="$PKGDEST/${pkgname}-${pkgver}-${pkgrel}.src.tar.gz"
+ local pkg_file="$PKGDEST/${pkgname}-${pkgver}-${pkgrel}${SRCEXT}"
# tar it up
msg2 "$(gettext "Compressing source package...")"
@@ -990,7 +990,7 @@ msg "$(gettext "Making package: %s")" "$pkgname $pkgver-$pkgrel ($date)"
# if we are creating a source-only package, go no further
if [ "$SOURCEONLY" = "1" ]; then
- if [ -f "$PKGDEST/${pkgname}-${pkgver}-${pkgrel}.src.tar.gz" \
+ if [ -f "$PKGDEST/${pkgname}-${pkgver}-${pkgrel}${SRCEXT}" \
-a "$FORCE" = "0" ]; then
error "$(gettext "a package has already been built. (use -f to overwrite)")"
exit 1