From 48e728d1120c9e5482b5e4aa4dd91f071acfd6bb Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 4 Dec 2014 13:26:46 +0100 Subject: btrfs-progs: autoconf: add ./configure script - add ./autogen.sh script (necessary after git clean/clone) - add ./configure.ac - copy autotool helper scripts from automake - modify version.sh to be usable from the configure script - rename Makefile to Makefile.in and use basic variables from configure.ac Signed-off-by: Karel Zak Signed-off-by: David Sterba --- version.sh | 7 +++++++ 1 file changed, 7 insertions(+) mode change 100644 => 100755 version.sh (limited to 'version.sh') diff --git a/version.sh b/version.sh old mode 100644 new mode 100755 index c6c88f6b..c012e6af --- a/version.sh +++ b/version.sh @@ -8,6 +8,7 @@ v="v3.18.2" +opt=$1 lib_major=0 lib_minor=1 lib_patchlevel=1 @@ -28,6 +29,12 @@ if [ $? == 0 -a -d .git ]; then fi fi +if [ "$opt" = "--configure" ]; then + # Omit the trailing newline, so that m4_esyscmd can use the result directly. + echo "$v" | tr -d '\n' + exit 0 +fi + echo "/* NOTE: this file is autogenerated by version.sh, do not edit */" > .build-version.h echo "#ifndef __BUILD_VERSION" >> .build-version.h echo >> .build-version.h -- cgit v1.2.3