[LOSTWAGES] Winedoc scripts [2/2]

Dimitrie O. Paun dpaun at rogers.com
Tue May 24 10:41:53 CDT 2005


ChangeLog
    Dimi Paun <dimi at lattica.com>
    Move the winedoc release to its own script.

-- 
Dimi.
-------------- next part --------------
--- /dev/null	2005-04-25 14:57:02.262484864 -0400
+++ winedoc_release	2005-05-20 17:02:25.000000000 -0400
@@ -0,0 +1,54 @@
+#!/usr/bin/expect
+
+# This script is ran after a new release of WineDoc. It updates the website
+# and FTP for the new winedoc release.
+
+# useage: winedoc_release <winedoc version>
+
+# get command line arguments
+proc do {args} {
+  puts "exec'ing $args"
+  if {[catch {eval exec $args} err]} {puts "returned error: $err"} {puts "returned OK"}
+}
+
+# set version
+if {$argc==0} {
+puts "type in latest winedoc version"
+gets stdin version
+} else {
+  set version [lindex $argv 0]
+}
+
+# get latest wine
+if {[file exists winedoc-$version.tar.gz] && ![catch {exec gunzip -t winedoc-$version.tar.gz}]} {
+    puts "Already have WineDoc, skipping download"
+} else {
+    do wget http://easynews.dl.sourceforge.net/sourceforge/wine/winedoc-$version.tar.gz
+}
+
+# nuke old attempt (if any)
+do rm -rf winedoc-$version
+
+# put Wine source in winedoc-$version
+do tar xzf winedoc-$version.tar.gz
+
+# cleanup tmp
+do rm winedoc-$version.tar.gz
+
+do echo ==== BUILDING SGML DOCUMENTATION ====
+cd winedoc-$version
+do chmod u+x ../../make_winehq
+do ../../make_winehq
+# copy documentation to correct locations
+do mv www.winehq.org/winedoc-guides-en.tgz /home/winehq/www/Docs/en/
+do mv www.winehq.org/winedoc-winehq-en.tgz /home/winehq/opt/lostwages/templates/en/docs/
+# untar downloadable docs
+cd /home/winehq/www/Docs/en/
+do tar xfvz winedoc-guides-en.tgz
+do rm -f winedoc-guides-en.tgz
+# untar website template docs
+cd /home/winehq/opt/lostwages/templates/en/docs/
+do tar xzvf winedoc-winehq-en.tgz
+do rm -f winedoc-winehq-en.tgz
+
+# end
Index: wine_release
===================================================================
RCS file: /home/wine/tools/wine_release,v
retrieving revision 1.11
diff -u -p -r1.11 wine_release
--- wine_release	9 Feb 2005 22:32:42 -0000	1.11
+++ wine_release	24 May 2005 15:36:52 -0000
@@ -98,23 +98,6 @@ cd documentation
 do make wine.man
 do nroff -man wine.man | ../../bin/man2html > ../../wine-man.html
 do nroff -man wine.conf.man | ../../bin/man2html > ../../wine-conf-man.html 
-do chmod u+x ../../make_winehq
-do ../../make_winehq
-# copy documentation to correct locations
-do mv www.winehq.org/winedoc-html.tgz /home/winehq/www/Docs/
-do mv www.winehq.org/winedoc-pdf.tgz /home/winehq/www/Docs/
-do mv www.winehq.org/winedoc-ps.tgz /home/winehq/www/Docs/
-do mv www.winehq.org/winehq-templates.tgz /home/winehq/opt/lostwages/templates/en/docs/
-# untar downloadable docs
-cd /home/winehq/www/Docs/
-do tar xfvz winedoc-html.tgz
-do tar xfvz winedoc-pdf.tgz
-do tar xfvz winedoc-ps.tgz
-do rm -f winedoc-html.tgz winedoc-pdf.tgz winedoc-ps.tgz
-# untar website template docs
-cd /home/winehq/opt/lostwages/templates/en/docs/
-do tar xzvf winehq-templates.tgz
-do rm -f winehq-templates.tgz
 # cleanup source tree
 cd /home/winehq/opt/source/wine$version
 do make distclean


More information about the wine-patches mailing list