From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- buildscripts/texbuilder/quickstart/build.php | 162 +++++++++++++-------------- 1 file changed, 81 insertions(+), 81 deletions(-) (limited to 'buildscripts/texbuilder/quickstart/build.php') diff --git a/buildscripts/texbuilder/quickstart/build.php b/buildscripts/texbuilder/quickstart/build.php index 81a12d4c..a42d6be3 100644 --- a/buildscripts/texbuilder/quickstart/build.php +++ b/buildscripts/texbuilder/quickstart/build.php @@ -1,81 +1,81 @@ - $sections) -{ - $content = '\chapter{'.$chapter.'}'.$parser->get_chapter_label($chapter); - echo "Creating ch{$count}.txt => Chapter {$count}: {$chapter}\n"; - echo str_repeat('-',60)."\n"; - foreach($sections as $section) - { - echo " Adding $section\n"; - $page = $base.'/'.$section; - $current_path = $page; - $parser->setCurrentPage($current_path); - - //add id to

,

,

and

- $tmp_content = $parser->set_header_id(file_get_contents($page),$j++); - file_put_contents($page, $tmp_content); - - $content .= $parser->get_section_label($section); - $file_content = file_get_contents($page); - //$tex = - $content .= $parser->parse_html($page,$file_content); - } - - //var_dump($content); - file_put_contents("ch{$count}.tex", $content); - $count++; - echo "\n"; -} - -//$indexer->commit(); - -if($argc <= 1 && $count > 1) -{ - echo "** Use pdflatex to compile quickstart.tex to obtain PDF version of quickstart tutorial. **\n"; - exit; -} -if($argv[1] == 'pdf') -{ - if(is_file($pdflatexExec)) - { - //build pdfTex - $command=sprintf($pdfTex,$mainTexFile); - system($command); - system($command); //run it twice - - echo "\n\n** PDF file quickstart.pdf created **\n\n"; - - } - else - { - echo " Unable to find pdfLatex executable $pdflatexExec"; - } -} - - -?> + $sections) +{ + $content = '\chapter{'.$chapter.'}'.$parser->get_chapter_label($chapter); + echo "Creating ch{$count}.txt => Chapter {$count}: {$chapter}\n"; + echo str_repeat('-',60)."\n"; + foreach($sections as $section) + { + echo " Adding $section\n"; + $page = $base.'/'.$section; + $current_path = $page; + $parser->setCurrentPage($current_path); + + //add id to

,

,

and

+ $tmp_content = $parser->set_header_id(file_get_contents($page),$j++); + file_put_contents($page, $tmp_content); + + $content .= $parser->get_section_label($section); + $file_content = file_get_contents($page); + //$tex = + $content .= $parser->parse_html($page,$file_content); + } + + //var_dump($content); + file_put_contents("ch{$count}.tex", $content); + $count++; + echo "\n"; +} + +//$indexer->commit(); + +if($argc <= 1 && $count > 1) +{ + echo "** Use pdflatex to compile quickstart.tex to obtain PDF version of quickstart tutorial. **\n"; + exit; +} +if($argv[1] == 'pdf') +{ + if(is_file($pdflatexExec)) + { + //build pdfTex + $command=sprintf($pdfTex,$mainTexFile); + system($command); + system($command); //run it twice + + echo "\n\n** PDF file quickstart.pdf created **\n\n"; + + } + else + { + echo " Unable to find pdfLatex executable $pdflatexExec"; + } +} + + +?> -- cgit v1.2.3