Fix docs
[tar.git] / bootstrap.conf
blob9e1b6e52623ccd08b9b7263ded654e1680669021
1 # Bootstrap configuration for GNU tar.
3 # Copyright 2006-2009, 2013-2014, 2016-2017 Free Software Foundation,
4 # Inc.
6 # This file is part of GNU tar.
8 # GNU tar is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
13 # GNU tar is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
21 source_base=gnu
22 gnulib_name=libgnu
24 # We don't need these modules, even though gnulib-tool mistakenly
25 # includes them because of gettext dependencies.
26 avoided_gnulib_modules='
27         --avoid=lock
31 # Additional xgettext options to use.  Use "\\\newline" to break lines.
32 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
33  --flag=_:1:pass-c-format\\\
34  --flag=N_:1:pass-c-format\\\
35  --flag=error:3:c-format --flag=error_at_line:5:c-format\\\
36  --flag=asnprintf:3:c-format --flag=vasnprintf:3:c-format\\\
37  --flag=argp_error:2:c-format\\\
38  --flag=__argp_error:2:c-format\\\
39  --flag=argp_failure:4:c-format\\\
40  --flag=__argp_failure:4:c-format\\\
41  --flag=argp_fmtstream_printf:2:c-format\\\
42  --flag=__argp_fmtstream_printf:2:c-format\\\
45 # Gettext supplies these files, but we don't need them since
46 # we don't have an intl subdirectory.
47 excluded_files='
48     m4/glibc2.m4
49     m4/intdiv0.m4
50     m4/lcmessage.m4
51     m4/lock.m4
52     m4/printf-posix.m4
53     m4/uintmax_t.m4
54     m4/ulonglong.m4
55     m4/visibility.m4
58 # Read local configuration file
59 if [ -r .bootstrap ]; then
60   echo "$0: Reading configuration file .bootstrap"
61   eval set -- "`sed 's/#.*$//;/^$/d' .bootstrap | tr '\n' ' '` $*"
64 test -d m4 || mkdir m4
65 test -d $source_base || mkdir $source_base
67 test -f ChangeLog || cat > ChangeLog <<EOT
68 This file is a placeholder. It will be replaced with the actual ChangeLog
69 by make dist.  Run make ChangeLog if you wish to create it earlier.
70 EOT
72 git submodule init
73 git submodule update
74 PAXUTILS=paxutils
76 # gnulib modules used by this package.
77 gnulib_modules="$avoided_gnulib_modules
78 `grep -h '^[^#]' gnulib.modules $PAXUTILS/gnulib.modules`
81 # copy_files srcdir dstdir
82 copy_files() {
83   for file in `cat $1/DISTFILES`
84   do
85     case $file in
86     "#*")  continue;;
87     esac
88     dst=`echo $file | sed 's^.*/^^'`
89     if [ $# -eq 3 ]; then
90       case $dst in
91       ${3}*) ;;
92       *) dst=${3}$dst;;
93       esac
94     fi
95     if [ "$2" = '.' ]; then
96       ln -sf $1/$file $2
97     else
98       symlink_to_dir "$1" "$file" "$2/$dst" || exit
99     fi
100 # FIXME    ignorefile $2 $dst
101   done
104 # Import from paxutils
105 copy_files ${PAXUTILS} .
106 copy_files ${PAXUTILS}/am m4
108 echo "$0: Creating m4/paxutils.m4"
109 (echo "# This file is generated automatically. Please, do not edit."
110  echo "#"
111  echo "AC_DEFUN([${package}_PAXUTILS],["
112  cat ${PAXUTILS}/am/DISTFILES | sed '/^#/d;s/\(.*\)\.m4/pu_\1/' | tr a-z A-Z
113  echo "])") > ./m4/paxutils.m4
114 #FIXME ignorefile m4 paxutils.m4
116 if [ -d rmt ]; then
117    :
118 else
119    mkdir rmt
122 for dir in doc rmt lib tests
124         copy_files ${PAXUTILS}/$dir $dir
125 done
127 copy_files ${PAXUTILS}/paxlib lib pax