~ubuntu-branches/debian/jessie/btrfs-tools/jessie

« back to all changes in this revision

Viewing changes to version.sh

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2014-10-11 16:54:05 UTC
  • mfrom: (1.2.14) (6.1.39 sid)
  • Revision ID: package-import@ubuntu.com-20141011165405-zvdemnhzw41f2doj
Tags: 3.16.2-1
* New upstream release.
* Drop patches (not needed, or upstremed), but unaligned memory access.
* Update upstream location in uscan, to pull release by kdave.
* Use upstream fsck.btrfs script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# Copyright 2008, Oracle
7
7
# Released under the GNU GPLv2
8
8
 
9
 
v="v3.16"
 
9
v="v3.16.2"
 
10
 
 
11
lib_major=0
 
12
lib_minor=1
 
13
lib_patchlevel=1
10
14
 
11
15
which git &> /dev/null
12
16
if [ $? == 0 -a -d .git ]; then
24
28
    fi
25
29
fi
26
30
 
27
 
echo "#ifndef __BUILD_VERSION" > .build-version.h
 
31
echo "/* NOTE: this file is autogenerated by version.sh, do not edit */" > .build-version.h
 
32
echo "#ifndef __BUILD_VERSION" >> .build-version.h
 
33
echo >> .build-version.h
28
34
echo "#define __BUILD_VERSION" >> .build-version.h
 
35
echo >> .build-version.h
 
36
echo "#define BTRFS_LIB_MAJOR $lib_major" >> .build-version.h
 
37
echo "#define BTRFS_LIB_MINOR $lib_minor" >> .build-version.h
 
38
echo "#define BTRFS_LIB_PATCHLEVEL $lib_patchlevel" >> .build-version.h
 
39
echo >> .build-version.h
 
40
echo "#define BTRFS_LIB_VERSION ( BTRFS_LIB_MAJOR * 10000 + \\" >> .build-version.h
 
41
echo "                            BTRFS_LIB_MINOR * 100 + \\" >> .build-version.h
 
42
echo "                            BTRFS_LIB_PATCHLEVEL )" >> .build-version.h
 
43
echo >> .build-version.h
29
44
echo "#define BTRFS_BUILD_VERSION \"Btrfs $v\"" >> .build-version.h
30
45
echo "#endif" >> .build-version.h
31
46