Minor fix
* bootstrap.conf: Don't try to download anything if --help is given
Showing
1 changed file
with
30 additions
and
19 deletions
... | @@ -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 $? |
92 | echo "$0: Reading configuration file .bootstrap" | 98 | git submodule update || exit $? |
93 | eval set -- "`sed 's/#.*$//;/^$/d' .bootstrap | tr '\n' ' '` $*" | ||
94 | fi | ||
95 | 99 | ||
96 | # Recreate missing maildir parts | 100 | # Read local configuration file |
97 | for mbox in testsuite/maildir/* | 101 | if [ -r .bootstrap ]; then |
98 | do | 102 | echo "$0: Reading configuration file .bootstrap" |
99 | test -d $mbox/new || mkdir $mbox/new | 103 | eval set -- "`sed 's/#.*$//;/^$/d' .bootstrap | tr '\n' ' '` $*" |
100 | test -d $mbox/cur || mkdir $mbox/cur | 104 | fi |
101 | test -d $mbox/tmp || mkdir $mbox/tmp | ||
102 | done | ||
103 | 105 | ||
104 | # Grab the latest radius.m4 | 106 | # Recreate missing maildir parts |
105 | test -f m4/radius.m4 || | 107 | for mbox in testsuite/maildir/* |
106 | wget -P m4 http://git.savannah.gnu.org/cgit/radius.git/plain/scripts/radius.m4 | 108 | do |
109 | test -d $mbox/new || mkdir $mbox/new | ||
110 | test -d $mbox/cur || mkdir $mbox/cur | ||
111 | test -d $mbox/tmp || mkdir $mbox/tmp | ||
112 | done | ||
107 | 113 | ||
108 | # Create included listings for texinfo docs. | 114 | # Grab the latest radius.m4 |
109 | #make -C doc/texinfo -f maint.mk | 115 | test -f m4/radius.m4 || |
116 | wget -P m4 http://git.savannah.gnu.org/cgit/radius.git/plain/scripts/radius.m4 | ||
117 | |||
118 | # Create included listings for texinfo docs. | ||
119 | #make -C doc/texinfo -f maint.mk | ||
120 | fi | ||
110 | 121 | ... | ... |
-
Please register or sign in to post a comment