Introduce $revision for use in templates.

--HG--
extra : convert_revision : c57cd2a6705e04be838a02665d0ea11f525ce263
This commit is contained in:
Juan RP 2009-03-27 16:39:28 +01:00
parent f27cf5c2af
commit 47d8d684aa

View file

@ -65,7 +65,7 @@ reset_tmpl_vars()
make_build_target configure_script noextract \ make_build_target configure_script noextract \
pre_configure pre_build pre_install \ pre_configure pre_build pre_install \
post_configure post_build post_install \ post_configure post_build post_install \
make_install_target version \ make_install_target version revision _revset \
sgml_catalogs xml_catalogs xml_entries sgml_entries \ sgml_catalogs xml_catalogs xml_entries sgml_entries \
build_depends libtool_fixup_la_stage no_fixup_libtool \ build_depends libtool_fixup_la_stage no_fixup_libtool \
disable_parallel_build run_depends cross_compiler \ disable_parallel_build run_depends cross_compiler \
@ -208,6 +208,11 @@ set_tmpl_common_vars()
{ {
[ -z "$pkgname" ] && return 1 [ -z "$pkgname" ] && return 1
if [ -z "${_revset}" -a -n "$revision" ]; then
_revset=1
version="${version}_${revision}"
fi
FILESDIR=${XBPS_TEMPLATESDIR}/${pkgname}/files FILESDIR=${XBPS_TEMPLATESDIR}/${pkgname}/files
DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version} DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version}
SRCPKGDESTDIR=${XBPS_DESTDIR}/${sourcepkg}-${version} SRCPKGDESTDIR=${XBPS_DESTDIR}/${sourcepkg}-${version}