mkbuild

mk based build system
git clone git://git.2f30.org/mkbuild.git
Log | Files | Refs | LICENSE

commit 025d293ef4c72f3744861749f10d9a6a93275eb7
parent d71fc926e1435519c99302050dc0b883f5e20291
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri May 23 13:11:37 +0200

add version number to package.

use packagename#packageversion.pkg.tgz format.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
mk.package | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/mk.package b/mk.package @@ -2,5 +2,9 @@ package:QV: pkg=$(basename `pwd`) env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk install ROOT=$(pwd)/.pkgroot - tar -zcf $pkg.tar.gz -C .pkgroot . + name="$pkg" + if test x"$v" != x""; then + name="$name#$v" + fi + fakeroot tar -zcf $name.pkg.tgz -C .pkgroot . rm -rf .pkgroot