~cafuego/pnx-s3fs-fuse/trunk

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Takeshi Nakatani
  • Date: 2015-08-21 16:35:07 UTC
  • mfrom: (397.1.2 trunk)
  • Revision ID: ggtakec@gmail.com-20150821163507-v7rb0fmcdmwmqb0n
Merge pull request #250 from s3fs-fuse/issue#228

s3fs can print version with short commit hash - #228

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
20
20
#  See the file ChangeLog for a revision history. 
21
21
 
 
22
echo "--- Make commit hash file -------"
 
23
 
 
24
SHORTHASH="unknown"
 
25
type git > /dev/null 2>&1
 
26
if [ $? -eq 0 -a -d .git ]; then
 
27
        RESULT=`git rev-parse --short HEAD`
 
28
        if [ $? -eq 0 ]; then
 
29
                SHORTHASH=${RESULT}
 
30
        fi
 
31
fi
 
32
echo ${SHORTHASH} > default_commit_hash
 
33
 
 
34
echo "--- Finished commit hash file ---"
 
35
 
 
36
echo "--- Start autotools -------------"
 
37
 
22
38
aclocal \
 
39
&& autoheader \
23
40
&& automake --add-missing \
24
41
&& autoconf
 
42
 
 
43
echo "--- Finished autotools ----------"
 
44
 
 
45
exit 0
 
46