6 Bootstrap this package from the checked-out sources.
9 --gnulib-srcdir=DIRNAME Specify the local directory where gnulib
10 sources reside. Use this if you already
11 have gnulib sources on your machine, and
12 do not want to waste your bandwidth downloading
15 If the file bootstrap.conf exists in the current working directory, its
16 contents are read as shell variables to configure the bootstrap.
18 Running without arguments will suffice in most cases.
29 GNULIB_SRCDIR=`expr "$option" : '--gnulib-srcdir=\(.*\)'`;;
31 echo >&2 "$0: $option: unknown option"
38 case ${GNULIB_SRCDIR--} in
40 echo "$0: getting gnulib files..."
41 git submodule init || exit $?
42 git submodule update || exit $?
46 # Redirect the gnulib submodule to the directory on the command line
48 if test -d "$GNULIB_SRCDIR"/.git && \
49 git config --file .gitmodules submodule.gnulib.url >/dev/null; then
51 GNULIB_SRCDIR=`cd $GNULIB_SRCDIR && pwd`
52 git config --replace-all submodule.gnulib.url $GNULIB_SRCDIR
53 echo "$0: getting gnulib files..."
54 git submodule update || exit $?
57 echo >&2 "$0: invalid gnulib srcdir: $GNULIB_SRCDIR"
63 ls po/*.po 2>/dev/null | sed 's|.*/||; s|\.po$||' > po/LINGUAS
65 # Create gettext configuration.
66 echo "$0: Creating po/Makevars from po/Makevars.template ..."
69 /^EXTRA_LOCALE_CATEGORIES *=/s/=.*/= '"$EXTRA_LOCALE_CATEGORIES"'/
70 /^MSGID_BUGS_ADDRESS *=/s/=.*/= '"$MSGID_BUGS_ADDRESS"'/
71 /^XGETTEXT_OPTIONS *=/{
74 '"$XGETTEXT_OPTIONS"' $${end_of_xgettext_options+}
76 ' po/Makevars.template >po/Makevars
78 gnulib_tool=$GNULIB_SRCDIR/gnulib-tool
95 --source-base=gnulib/lib \
96 --tests-base=gnulib/tests \