Author: matthew
Date: 2009-07-18 09:13:04 -0600 (Sat, 18 Jul 2009)
New Revision: 8971

Modified:
   trunk/editor-manual/release-script.sh
Log:
Fix release-script.sh so that it works on quantum.

Modified: trunk/editor-manual/release-script.sh
===================================================================
--- trunk/editor-manual/release-script.sh       2009-07-18 13:06:35 UTC (rev 
8970)
+++ trunk/editor-manual/release-script.sh       2009-07-18 15:13:04 UTC (rev 
8971)
@@ -30,7 +30,7 @@
 #######################
 # These are the biggies
 stable=n                      # Is this the final release? 'y' or 'n' only
-version=6.1-testrelease       # x.y[.z-preX]
+version=6.5-rc1               # x.y[.z-preX]
 #######################
 
 workarea=~/RELEASE-${version} # This is where you will do all your work
@@ -39,12 +39,12 @@
 group=lfswww                  # Which group will own the files after copying
 
 # Where the books are to be copied to
-view=/home/httpd/www.linuxfromscratch.org/lfs/view
-downloads=/home/httpd/www.linuxfromscratch.org/lfs/downloads
-archives=/home/httpd/archives.linuxfromscratch.org/lfs-museum
+view=/srv/www/www.linuxfromscratch.org/lfs/view
+downloads=/srv/www/www.linuxfromscratch.org/lfs/downloads
+archives=/srv/www/archives.linuxfromscratch.org/lfs-museum
 
-if [ "$host" != "belgarath" ]; then
-  echo -e "\n${red}*${white} This script must be run on 
${red}belgarath${white}."
+if [ "$host" != "quantum" ]; then
+  echo -e "\n${red}*${white} This script must be run on ${red}quantum${white}."
   exit 1
 fi
 
@@ -110,27 +110,29 @@
   >$workarea/nochunks.log 2>&1 || exit 9
 cd $workarea
 # Before bzipping the NOCHUNKS, create a text dump
-lynx -dump $book-NOCHUNKS.html >$book.txt
-sed -i.bak -e "/^   [0-9]\. /d" -e "/^  [0-9][0-9]\. /d" \
-  -e "/^ [0-9][0-9][0-9]\. /d" -e "/^[0-9][0-9][0-9][0-9]\. /d" \
-  $book.txt
-bzip2 $book.txt
+#lynx -dump $book-NOCHUNKS.html >$book.txt
+#sed -i.bak -e "/^   [0-9]\. /d" -e "/^  [0-9][0-9]\. /d" \
+#  -e "/^ [0-9][0-9][0-9]\. /d" -e "/^[0-9][0-9][0-9][0-9]\. /d" \
+#  $book.txt
+#bzip2 $book.txt
 bzip2 $book-NOCHUNKS.html || exit 29
 rm -rf images
 echo -e "${grn}*${yel} Successful!${norm}\n"
 
 # Finally, the PDF
 
-echo -e "${grn}*${white} Preparing ${grn}$book.pdf${white}...${norm}"
-cd $workarea/original
-make BASEDIR=$workarea PDF_OUTPUT=$book.pdf pdf >$workarea/pdf.log 2>&1 || 
exit 9
-echo -e "${grn}*${yel} Successful!${norm}\n"
+#echo -e "${grn}*${white} Preparing ${grn}$book.pdf${white}...${norm}"
+#cd $workarea/original
+#make BASEDIR=$workarea PDF_OUTPUT=$book.pdf pdf >$workarea/pdf.log 2>&1 || 
exit 9
+#echo -e "${grn}*${yel} Successful!${norm}\n"
 
 # Now that the books are finished, create the script that will copy all patches
 # to their proper location.
 
 echo -e "${grn}*${white} Creating ${grn}copy-lfs-patches.sh ${white}...${norm}"
 cd $workarea/original
+chmod u+x process-scripts.sh
+./process-scripts.sh
 xsltproc --xinclude stylesheets/patcheslist.xsl index.xml \
   >$workarea/copy-lfs-patches.sh || exit 39
 
@@ -143,8 +145,8 @@
 tar jxf $workarea/$book-XML.tar.bz2
 tar jxf $workarea/$book-HTML.tar.bz2
 bzcat $workarea/$book-NOCHUNKS.html.bz2 >$book-NOCHUNKS.html
-bzcat $workarea/$book.txt.bz2 >$book.txt
-cp $workarea/$book.pdf .
+#bzcat $workarea/$book.txt.bz2 >$book.txt
+#cp $workarea/$book.pdf .
 
 # Now to cleanup
 echo -e "\n${grn}*${white} Cleaning up...${norm}"
@@ -213,11 +215,11 @@
   install -v -m 0664 -g $group $book-HTML.tar.bz2 \$dir/$version
   echo
   install -v -m 0664 -g $group $book-NOCHUNKS.html.bz2 \$dir/$version
+#  echo
+#  install -v -m 0664 -g $group $book.txt.bz2 \$dir/$version
+#  echo
+#  install -v -m 0664 -g $group $book.pdf \$dir/$version
   echo
-  install -v -m 0664 -g $group $book.txt.bz2 \$dir/$version
-  echo
-  install -v -m 0664 -g $group $book.pdf \$dir/$version
-  echo
 done
 
 # Now untar a copy in both archives and in view

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to