diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2020-06-01 17:29:37 +0200 |
---|---|---|
committer | Romain Bouvier <skunnyk@alteroot.org> | 2020-06-04 19:54:45 +0200 |
commit | caed69490485466132348afe283a2e80ab371ed1 (patch) | |
tree | 7b990e85eaf4cae5894a79ff7a7507c38a6511a9 /autogen.sh | |
parent | e19cc0f79b3a577ef1e3ab1220c47ed640362a6e (diff) | |
download | xfce4-dev-tools-caed69490485466132348afe283a2e80ab371ed1.tar.gz |
Implement XDT_VERSION_INIT
Add an XDT_VERSION_INIT help macro that will define a set of version
macros using esyscmd so we no lnger need to use configure.ac.in to
perpare the version string for AC_INIT.
XDT_VERSION_INIT(SEMVER, [TAG] will set the following macros:
- xdt_version
- xdt_version_major
- xdt_version_minor
- xdt_version_micro
- xdt_version_tag
- xdt_version_build
- xdt_debug_default
Example usage:
XDT_VERSION_INIT([4.15.3],[git])
AC_INIT([xfce4-someproject], [xdt_version()])
...
XDT_FEATURE_DEBUG([xdt_debug_default])
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -20,17 +20,8 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# substitute revision and date -if test -d .git; then - revision=$(git rev-parse --short HEAD) -fi -if test "x$revision" = "x"; then - revision=UNKNOWN -fi -sed -e "s/@REVISION@/${revision}/g" < "configure.ac.in" > "configure.ac" - (libtoolize && - aclocal && + aclocal -I m4macros && automake --add-missing --copy && autoconf) || exit 1 |