diff options
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 61 |
1 files changed, 30 insertions, 31 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index 00e0d66f..9ca26dc6 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -60,16 +60,12 @@ if [ -r .bootstrap ]; then eval set -- "`sed 's/#.*$//;/^$/d' .bootstrap | tr '\n' ' '` $*" fi -test -d m4 || mkdir m4 -test -d $source_base || mkdir $source_base - -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 +bootstrap_post_pull_hook() { + mkdir -p m4 $source_base + git submodule init + git submodule update +} -git submodule init -git submodule update PAXUTILS=paxutils # gnulib modules used by this package. @@ -100,27 +96,30 @@ copy_files() { 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 +bootstrap_post_import_hook() { -for dir in doc rmt lib tests -do - copy_files ${PAXUTILS}/$dir $dir -done + 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 + + # 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 + + mkdir -p rmt -copy_files ${PAXUTILS}/paxlib lib pax + for dir in doc rmt lib tests; do + copy_files ${PAXUTILS}/$dir $dir + done + + copy_files ${PAXUTILS}/paxlib lib pax +} |