2004-10-28 James Henstridge <james@jamesh.id.au>
+ * gnome-autogen.sh: if the directory is read only, skip it. This
+ helps in cases where a directory from a failed "make distcheck" is
+ lying around. Should fix bug #136093.
+
* gnome-autogen.sh (m4dir): fix up the AC_CONFIG_MACRO_DIR check
to work with sub-package configure.in's.
exit 1
fi
-if test -z "$*"; then
+if [ "$#" = 0 ]; then
printerr "**Warning**: I am going to run \`configure' with no arguments."
printerr "If you wish to pass any to it, please specify them on the"
printerr \`$0\'" command line."
for configure_ac in $configure_files; do
dirname=`dirname $configure_ac`
basename=`basename $configure_ac`
- if test -f $dirname/NO-AUTO-GEN; then
+ if [ -f $dirname/NO-AUTO-GEN ]; then
echo skipping $dirname -- flagged as no auto-gen
+ elif [ ! -w $dirname ]; then
+ echo skipping $dirname -- directory is read only
else
printbold "Processing $configure_ac"
cd $dirname