summaryrefslogtreecommitdiffstats
path: root/bin/pbj
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2011-08-16 18:29:24 +0200
committerJustin Davis <jrcd83@gmail.com>2011-08-16 18:29:24 +0200
commit861fc1a315eeea5e198e706abde72a1e7f68a5fb (patch)
tree00f16b515af5254b9ae7273b0dea82db20896639 /bin/pbj
parentb01a803e7aee81275a48670cecca6a5d75edaa0d (diff)
downloadgenpkg-861fc1a315eeea5e198e706abde72a1e7f68a5fb.tar.gz
genpkg-861fc1a315eeea5e198e706abde72a1e7f68a5fb.tar.xz
Set the pkgname in pbj to match the .pbj filename.
Diffstat (limited to 'bin/pbj')
-rwxr-xr-xbin/pbj5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/pbj b/bin/pbj
index ac926b6..0ca06f8 100755
--- a/bin/pbj
+++ b/bin/pbj
@@ -43,8 +43,9 @@ cd "$pkgroot/$pkg"
export PATH="$PATH:$bindir/macros:$bindir/templ"
-# Provide values for things macros won't be able to.
-printf "+ pbjver $VERSION\n+ pkgrel ${PKGREL:-1}\n" \
+# Match the pkgname to the .pbj filename.
+# Provide values for other things macros won't be able to.
+printf "+ pkgname $pkg\n+ pkgrel ${PKGREL:-1}\n+ pbjver $VERSION\n" \
| cat - "$jamfile" \
| awk -v packager="$PACKAGER" -f "$bindir/pbjparse.awk" \
> PKGBUILD