cvs: php-gtk-doc / configure.in

[email protected] ("Steph Fox")
Newsgroups php.gtk.doc
Message-ID <cvssfox1161195251@cvsserver>
sfox		Wed Oct 18 18:14:11 2006 UTC

  Modified files:              
    /php-gtk-doc	configure.in 
  Log:
  Don't try to use this yet - it's just a statement of intent.
  
http://cvs.php.net/viewvc.cgi/php-gtk-doc/configure.in?r1=1.35&r2=1.36&diff_format=u
Index: php-gtk-doc/configure.in
diff -u php-gtk-doc/configure.in:1.35 php-gtk-doc/configure.in:1.36
--- php-gtk-doc/configure.in:1.35	Sun Apr  9 14:26:46 2006
+++ php-gtk-doc/configure.in	Wed Oct 18 18:14:11 2006
@@ -14,7 +14,7 @@
 # +----------------------------------------------------------------------+
 
 #
-# $Id: configure.in,v 1.35 2006/04/09 14:26:46 sfox Exp $
+# $Id: configure.in,v 1.36 2006/10/18 18:14:11 sfox Exp $
 
 AC_INIT([manual/global.ent])
 
@@ -116,6 +116,29 @@
 
 AC_SUBST(HISTORY)
 
+# - or we could just check against our local directory
+AC_ARG_ENABLE(updates-only,
+[  --enable-updates-only     whether to only build updated files],
+[
+UPDATES_ONLY=yes
+if [ test -e ./build/$LANG/php/index.html ]; then
+	for xmlfile in `find $LANGDIR -name "*.xml" | sed -e"s%^$LANGDIR\/%%g" | sort`; do
+		if [ test -f $LANGDIR/$xmlfile ]; then
+			filepath=$LANGDIR/$xmlfile
+			if [test $filepath -nt ./build/$LANG/html/index.html ]; then
+				echo Updating "$xmlfile"...
+				updates="$updates $filepath"
+			fi
+		fi
+	done;
+else
+	AC_MSG_ERROR(You need to create a full HTML build before you can run updates against it!)
+fi
+],
+[UPDATES_ONLY=no])
+
+AC_SUBST(UPDATES_ONLY)
+
 # make quiet builds optional
 AC_MSG_CHECKING(whether to build silently)
 AC_ARG_ENABLE(output,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.