From 47d8d684aa9a1ba72c89fc4e821d342be8c9d31b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 27 Mar 2009 16:39:28 +0100 Subject: [PATCH] Introduce $revision for use in templates. --HG-- extra : convert_revision : c57cd2a6705e04be838a02665d0ea11f525ce263 --- shutils/tmpl_funcs.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/shutils/tmpl_funcs.sh b/shutils/tmpl_funcs.sh index 1c3e5a20d16..ecd9f4ae761 100644 --- a/shutils/tmpl_funcs.sh +++ b/shutils/tmpl_funcs.sh @@ -65,7 +65,7 @@ reset_tmpl_vars() make_build_target configure_script noextract \ pre_configure pre_build pre_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 \ build_depends libtool_fixup_la_stage no_fixup_libtool \ disable_parallel_build run_depends cross_compiler \ @@ -208,6 +208,11 @@ set_tmpl_common_vars() { [ -z "$pkgname" ] && return 1 + if [ -z "${_revset}" -a -n "$revision" ]; then + _revset=1 + version="${version}_${revision}" + fi + FILESDIR=${XBPS_TEMPLATESDIR}/${pkgname}/files DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version} SRCPKGDESTDIR=${XBPS_DESTDIR}/${sourcepkg}-${version}