aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.conf
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.conf')
-rw-r--r--bootstrap.conf63
1 files changed, 59 insertions, 4 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
index aa2a3df..4286e56 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -20,8 +20,8 @@
source_base=gnu
gnulib_name=libgnu
-gnulib_mk=Makefile.am
+test -d m4 || mkdir m4
test -d $source_base || mkdir -p $source_base
# We don't need these modules, even though gnulib-tool mistakenly
@@ -31,9 +31,6 @@ avoided_gnulib_modules='
--avoid=size_max
'
-# gnulib modules used by this package.
-gnulib_modules="`grep '^[^#]' gnulib.modules`"
-
# Additional xgettext options to use. Use "\\\newline" to break lines.
XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
--flag=_:1:pass-c-format\\\
@@ -70,3 +67,61 @@ test -f Changelog || cat > ChangeLog <<EOT
This file is a placeholder. It will be replaced with the actual ChangeLog
by make dist. Run make ChangeLog if you wish to create it earlier.
EOT
+
+git submodule init
+git submodule update
+PAXUTILS=paxutils
+
+# gnulib modules used by this package.
+gnulib_modules="$avoided_gnulib_modules
+`grep -h '^[^#]' gnulib.modules $PAXUTILS/gnulib.modules`
+"
+
+# copy_files srcdir dstdir
+copy_files() {
+ for file in `cat $1/DISTFILES`
+ do
+ case $file in
+ "#*") continue;;
+ esac
+ dst=`echo $file | sed 's^.*/^^'`
+ if [ $# -eq 3 ]; then
+ case $dst in
+ ${3}*) ;;
+ *) dst=${3}$dst;;
+ esac
+ fi
+ if [ "$2" = '.' ]; then
+ ln -sf $1/$file $2
+ else
+ symlink_to_dir "$1" "$file" "$2/$dst" || exit
+ fi
+# FIXME ignorefile $2 $dst
+ done
+}
+
+# Import from paxutils
+copy_files ${PAXUTILS} .
+copy_files ${PAXUTILS}/am m4
+
+echo "$0: Creating m4/paxutils.m4"
+(echo "# This file is generated automatically. Please, do not edit."
+ echo "#"
+ echo "AC_DEFUN([${package}_PAXUTILS],["
+ cat ${PAXUTILS}/am/DISTFILES | sed '/^#/d;s/\(.*\)\.m4/pu_\1/' | tr a-z A-Z
+ echo "])") > ./m4/paxutils.m4
+#FIXME ignorefile m4 paxutils.m4
+
+if [ -d rmt ]; then
+ :
+else
+ mkdir rmt
+fi
+
+for dir in doc rmt lib tests
+do
+ copy_files ${PAXUTILS}/$dir $dir
+done
+
+copy_files ${PAXUTILS}/paxlib lib pax
+ \ No newline at end of file

Return to:

Send suggestions and report system problems to the System administrator.