diff options
author | Karel Zak <kzak@redhat.com> | 2014-12-04 13:26:46 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-01-28 17:55:36 +0100 |
commit | 48e728d1120c9e5482b5e4aa4dd91f071acfd6bb (patch) | |
tree | e7540ae1a90ec25e170f92f0eb809f600bd0b276 /version.sh | |
parent | 344599a7aefe23c7169ccdde3ad1b921bb60024c (diff) |
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 <kzak@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'version.sh')
-rwxr-xr-x[-rw-r--r--] | version.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/version.sh b/version.sh index c6c88f6b..c012e6af 100644..100755 --- 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 |