tools/. winedoc_release

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 1 10:27:57 CST 2005


ChangeSet ID:	21016
CVSROOT:	/opt/cvs-commit
Module name:	tools
Changes by:	julliard at winehq.org	2005/11/01 10:27:57

Modified files:
	.              : winedoc_release 

Log message:
	Allow specifying the version as 'cvs' to rebuild the online docs
	directly from CVS between releases.

Patch: http://cvs.winehq.org/patch.py?id=21016

Old revision  New revision  Changes     Path
 1.4           1.5           +23 -18     tools/winedoc_release

Index: tools/winedoc_release
diff -u -p tools/winedoc_release:1.4 tools/winedoc_release:1.5
--- tools/winedoc_release:1.4	1 Nov 2005 16:27:57 -0000
+++ tools/winedoc_release	1 Nov 2005 16:27:57 -0000
@@ -9,27 +9,28 @@ set -e
 
 if [ $# -lt 1 ]
 then
-  echo "Usage: $0 version"
+  echo "Usage: $0 version|cvs"
   exit 1
 fi
 
 version=$1
 
-if [ -f wine-docs-$version.tar.bz2 ]
-then
-  echo "Already have Wine docs, skipping download"
-else
-  ncftpget ftp://ibiblio.org/pub/linux/system/emulators/wine/wine-docs-$version.tar.bz2
-fi
-
 # nuke old attempt (if any)
 rm -rf wine-docs-$version
 
-# put Wine Docs source in wine-docs-$version
-tar xfj wine-docs-$version.tar.bz2
-
-# cleanup tmp
-rm wine-docs-$version.tar.bz2
+if [ "$version" = "cvs" ]
+then
+  cvs -z9 -d :pserver:anonymous at cvs.sourceforge.net:/cvsroot/wine co -d wine-docs-cvs docs
+else
+  if [ -f wine-docs-$version.tar.bz2 ]
+  then
+    echo "Already have Wine docs, skipping download"
+  else
+    ncftpget ftp://ibiblio.org/pub/linux/system/emulators/wine/wine-docs-$version.tar.bz2
+  fi
+  tar xfj wine-docs-$version.tar.bz2
+  rm wine-docs-$version.tar.bz2
+fi
 
 echo "==== BUILDING SGML DOCUMENTATION ===="
 
@@ -52,11 +53,14 @@ do
   do
     echo "* $book"
 
-    # build guides as single files
-    docbook2html -u -d ../../winehtml.dsl $book.sgml
-    docbook2pdf -d ../../wineprint.dsl $book.sgml
-    docbook2ps -d ../../wineprint.dsl $book.sgml
-    mv $book.html $book.pdf $book.ps $guides_base_dir/$lang
+    # build guides as single files (only for releases)
+    if [ "$version" != "cvs" ]
+    then
+      docbook2html -u -d ../../winehtml.dsl $book.sgml
+      docbook2pdf -d ../../wineprint.dsl $book.sgml
+      docbook2ps -d ../../wineprint.dsl $book.sgml
+      mv $book.html $book.pdf $book.ps $guides_base_dir/$lang
+    fi
 
     # build the online html version
     docbook2html -d ../../winehtml.dsl -o $book.web $book.sgml
@@ -70,6 +74,7 @@ do
   cd ..
 done
 
+cd ..
 rm -rf wine-docs-$version
 
 # end



More information about the wine-cvs mailing list