summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2020-06-01 17:29:37 +0200
committerRomain Bouvier <skunnyk@alteroot.org>2020-06-04 19:54:45 +0200
commitcaed69490485466132348afe283a2e80ab371ed1 (patch)
tree7b990e85eaf4cae5894a79ff7a7507c38a6511a9 /autogen.sh
parente19cc0f79b3a577ef1e3ab1220c47ed640362a6e (diff)
downloadxfce4-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-xautogen.sh11
1 files changed, 1 insertions, 10 deletions
diff --git a/autogen.sh b/autogen.sh
index 404a962..62d362f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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