Commit 183ada2b 183ada2bf59176462c97a5026407fc4273a2c251 by Sergey Poznyakoff

Minor fix

* bootstrap.conf: Don't try to download anything if --help is given
1 parent e13501a1
...@@ -84,27 +84,38 @@ excluded_files=' ...@@ -84,27 +84,38 @@ excluded_files='
84 m4/visibility.m4 84 m4/visibility.m4
85 ' 85 '
86 86
87 git submodule init || exit $? 87 help=
88 git submodule update || exit $? 88 for option
89 do
90 case $option in
91 --help)
92 help=1;;
93 esac
94 done
89 95
90 # Read local configuration file 96 if [ -z "$help" ]; then
91 if [ -r .bootstrap ]; then 97 git submodule init || exit $?
98 git submodule update || exit $?
99
100 # Read local configuration file
101 if [ -r .bootstrap ]; then
92 echo "$0: Reading configuration file .bootstrap" 102 echo "$0: Reading configuration file .bootstrap"
93 eval set -- "`sed 's/#.*$//;/^$/d' .bootstrap | tr '\n' ' '` $*" 103 eval set -- "`sed 's/#.*$//;/^$/d' .bootstrap | tr '\n' ' '` $*"
94 fi 104 fi
95 105
96 # Recreate missing maildir parts 106 # Recreate missing maildir parts
97 for mbox in testsuite/maildir/* 107 for mbox in testsuite/maildir/*
98 do 108 do
99 test -d $mbox/new || mkdir $mbox/new 109 test -d $mbox/new || mkdir $mbox/new
100 test -d $mbox/cur || mkdir $mbox/cur 110 test -d $mbox/cur || mkdir $mbox/cur
101 test -d $mbox/tmp || mkdir $mbox/tmp 111 test -d $mbox/tmp || mkdir $mbox/tmp
102 done 112 done
103 113
104 # Grab the latest radius.m4 114 # Grab the latest radius.m4
105 test -f m4/radius.m4 || 115 test -f m4/radius.m4 ||
106 wget -P m4 http://git.savannah.gnu.org/cgit/radius.git/plain/scripts/radius.m4 116 wget -P m4 http://git.savannah.gnu.org/cgit/radius.git/plain/scripts/radius.m4
107 117
108 # Create included listings for texinfo docs. 118 # Create included listings for texinfo docs.
109 #make -C doc/texinfo -f maint.mk 119 #make -C doc/texinfo -f maint.mk
120 fi
110 121
......