2022-01-15 17:08:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2010-11-13 23:59:23 +00:00
|
|
|
# This file is part of S3FS.
|
|
|
|
#
|
|
|
|
# Copyright 2009, 2010 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# S3FS is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or (at
|
|
|
|
# your option) any later version.
|
|
|
|
#
|
|
|
|
# S3FS is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see http://www.gnu.org/licenses/.
|
|
|
|
#
|
|
|
|
# See the file ChangeLog for a revision history.
|
|
|
|
|
2015-08-21 16:19:31 +00:00
|
|
|
echo "--- Make commit hash file -------"
|
|
|
|
|
2024-06-23 05:43:07 +00:00
|
|
|
SHORTHASH=""
|
2022-01-15 17:08:46 +00:00
|
|
|
if command -v git > /dev/null 2>&1 && test -d .git; then
|
2024-06-23 05:43:07 +00:00
|
|
|
if SHORTHASH=$(git rev-parse --short HEAD); then
|
|
|
|
echo " -> Git commit hash : ${SHORTHASH}"
|
|
|
|
else
|
|
|
|
echo " -> Not get git commit hash"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo " -> Not found git command or .git directory"
|
2015-08-21 16:19:31 +00:00
|
|
|
fi
|
2022-01-15 17:08:46 +00:00
|
|
|
echo "${SHORTHASH}" > default_commit_hash
|
2015-08-21 16:19:31 +00:00
|
|
|
|
|
|
|
echo "--- Finished commit hash file ---"
|
|
|
|
|
|
|
|
echo "--- Start autotools -------------"
|
|
|
|
|
2023-03-05 04:30:59 +00:00
|
|
|
autoupdate \
|
|
|
|
&& aclocal \
|
2015-08-21 16:19:31 +00:00
|
|
|
&& autoheader \
|
2010-11-13 23:59:23 +00:00
|
|
|
&& automake --add-missing \
|
|
|
|
&& autoconf
|
2015-08-21 16:19:31 +00:00
|
|
|
|
|
|
|
echo "--- Finished autotools ----------"
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
2020-08-22 12:40:53 +00:00
|
|
|
#
|
|
|
|
# Local variables:
|
|
|
|
# tab-width: 4
|
|
|
|
# c-basic-offset: 4
|
|
|
|
# End:
|
2023-03-05 04:30:59 +00:00
|
|
|
# vim600: expandtab sw=4 ts=4 fdm=marker
|
2020-08-22 12:40:53 +00:00
|
|
|
# vim<600: expandtab sw=4 ts=4
|
|
|
|
#
|