if the directory is read only, skip it. This helps in cases where a
authorJames Henstridge <james@jamesh.id.au>
Thu, 28 Oct 2004 11:36:17 +0000 (11:36 +0000)
committerJames Henstridge <jamesh@src.gnome.org>
Thu, 28 Oct 2004 11:36:17 +0000 (11:36 +0000)
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.

svn path=/trunk/; revision=3480

macros2/ChangeLog
macros2/gnome-autogen.sh

index ace54b8..fc5fb90 100644 (file)
@@ -1,5 +1,9 @@
 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.
 
index 4ad6b89..c22eb60 100644 (file)
@@ -319,7 +319,7 @@ if [ "$DIE" -eq 1 ]; then
   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."
@@ -330,8 +330,10 @@ topdir=`pwd`
 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