Rev 546 Rev 1918
Line 8... Line 8...
8   8  
9 # Configuration 9 # Configuration
10 # ============= 10 # =============
11 # WorkingDir - existing directory with rw access 11 # WorkingDir - existing directory with rw access
12 # SvnPath - path ro subversion server with source files 12 # SvnPath - path ro subversion server with source files
13 # SvnInfoFile - name of file to put info about version in 13 # SvnInfoFileName - name of file to put info about version in
14 # WebForthInPath - name of directory with HTML templates and scripts 14 # WebForthInPath - name of directory with HTML templates and scripts
15 # WebForthOutPath - name of directory to put HTML pages in 15 # WebForthOutPath - name of directory to put HTML pages in
16 WorkingDir=/home/miho/amforth 16 WorkingDir=/home/miho/amforth
17 SvnPath=https://amforth.svn.sourceforge.net/svnroot/amforth/trunk 17 SvnPath=https://amforth.svn.sourceforge.net/svnroot/amforth/trunk
18 SvnInfoFile=.svn-info.txt 18 SvnInfoFileName=.svn-info.txt
19 WebForthInPath=/var/www/Articles/Forth 19 WebForthInPath=/var/www/Articles/Forth
20 WebForthOutPath=/var/www/Articles/Forth 20 WebForthOutPath=/var/www/Articles/Forth
21   21  
22 # Start of script 22 # Start of script
23 # =============== 23 # ===============
Line 85... Line 85...
85 echo "$Result" >> $LogFile 85 echo "$Result" >> $LogFile
86 if (($?)); then 86 if (($?)); then
87 echo "--> ERROR: svn export" | tee -a $LogFile 87 echo "--> ERROR: svn export" | tee -a $LogFile
88 exit 1 88 exit 1
89 fi 89 fi
90 echo "$Result" > $WorkingDir/source-exported/$SvnInfoFile 90 echo "$Result" > $WorkingDir/source-exported/$SvnInfoFileName
91 echo "-------------------" >> $LogFile 91 echo "-------------------" >> $LogFile
92   92  
93 # Create HTML 93 # Create HTML
94 # =========== 94 # ===========
95 echo "Performing: GenerateHTML" | tee -a $LogFile 95 echo "Performing: GenerateHTML" | tee -a $LogFile
Line 98... Line 98...
98 fi 98 fi
99 php $WebForthInPath/PHP/GenerateHTML.php \ 99 php $WebForthInPath/PHP/GenerateHTML.php \
100 EnableApache="0" \ 100 EnableApache="0" \
101 SourceDir="$WorkingDir/source-exported/" \ 101 SourceDir="$WorkingDir/source-exported/" \
102 SourceAsm="amforth.asm" \ 102 SourceAsm="amforth.asm" \
103 SvnInfoFile="$SvnInfoFile" \ 103 SvnInfoFileName="$SvnInfoFileName" \
104 TemplateDir="$WebForthInPath/Templates/" \ 104 TemplateDir="$WebForthInPath/Templates/" \
105 DestinationDir="$WebForthOutPath/HTML/" \ 105 DestinationDir="$WorkingDir/HTML/" \
106 > $LogFileGenerate 2>> $LogFile 106 > $LogFileGenerate 2>> $LogFile
107 if (($?)); then 107 if (($?)); then
108 echo "--> ERROR: GenerateHTML.php" | tee -a $LogFile 108 echo "--> ERROR: GenerateHTML.php" | tee -a $LogFile
109 exit 1 109 exit 1
110 fi 110 fi