-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·30 lines (23 loc) · 1.08 KB
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /usr/bin/env bash
set -eu
if [ -x "gnulib/gnulib-tool" ]; then
gnulibtool=gnulib/gnulib-tool
elif [ -x "../gnulib/gnulib-tool" ]; then
gnulibtool=../gnulib/gnulib-tool
else
gnulibtool=gnulib-tool
fi
gnulib_modules=( git-version-gen gitlog-to-changelog gnupload progname
maintainer-makefile announce-gen stddef crypto/md5 )
$gnulibtool --m4-base build-aux --source-base libgnu --import "${gnulib_modules[@]}"
sed -i -e 's/^sc_bindtextdomain/disabled_sc_bindtextdomain/' \
-e 's/sc_cast_of_argument_to_free/disabled_sc_cast_of_argument_to_free/' \
-e 's/^sc_prohibit_atoi_atof/disabled_sc_prohibit_atoi_atof/' \
-e 's/^sc_prohibit_magic_number_exit/disabled_sc_prohibit_magic_number_exit/' \
-e 's/^sc_prohibit_strcmp/disabled_sc_prohibit_strcmp/' \
-e 's/^sc_prohibit_strcpy/disabled_sc_prohibit_strcpy/' \
-e 's/^sc_prohibit_strncpy/disabled_sc_prohibit_strncpy/' \
-e 's/^sc_prohibit_test_minus_ao/disabled_sc_prohibit_test_minus_ao/' \
maint.mk
build-aux/gitlog-to-changelog >ChangeLog
autoreconf --install -Wall