summaryrefslogtreecommitdiff
path: root/buildscripts/texbuilder/sqlmap
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/texbuilder/sqlmap')
-rw-r--r--buildscripts/texbuilder/sqlmap/build.php162
-rw-r--r--buildscripts/texbuilder/sqlmap/pages.php122
2 files changed, 142 insertions, 142 deletions
diff --git a/buildscripts/texbuilder/sqlmap/build.php b/buildscripts/texbuilder/sqlmap/build.php
index 46773390..4ea4d75e 100644
--- a/buildscripts/texbuilder/sqlmap/build.php
+++ b/buildscripts/texbuilder/sqlmap/build.php
@@ -1,81 +1,81 @@
-<?php
-
-// TBD: subsections in Control Reference
-
-$pdflatexExec = "C:/Wei/miktex/texmf/MiKTeX/bin/pdflatex.exe";
-$pdfTex = "$pdflatexExec -interaction=nonstopmode -max-print-line=120 %s";
-
-$mainTexFile = dirname(__FILE__).'/sqlmap.tex';
-
-//page root location
-$base = realpath(dirname(__FILE__).'/../../../demos/sqlmap/protected/pages/');
-
-//-------------- END CONFIG ------------------
-
-$pages = include('pages.php');
-
-include('../../../../prado-3.0/buildscripts/texbuilder/Page2Tex.php');
-
-// ---------------- Create the Tex files ---------
-$count = 1;
-$j = 1;
-$current_path = '';
-echo "Compiling .page files to Latex files\n\n";
-
-$parser = new Page2Tex($base, dirname(__FILE__));
-
-foreach($pages as $chapter => $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 <h1>, <h2>, <3>
- $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";
- }
-}
-
-
-?>
+<?php
+
+// TBD: subsections in Control Reference
+
+$pdflatexExec = "C:/Wei/miktex/texmf/MiKTeX/bin/pdflatex.exe";
+$pdfTex = "$pdflatexExec -interaction=nonstopmode -max-print-line=120 %s";
+
+$mainTexFile = dirname(__FILE__).'/sqlmap.tex';
+
+//page root location
+$base = realpath(dirname(__FILE__).'/../../../demos/sqlmap/protected/pages/');
+
+//-------------- END CONFIG ------------------
+
+$pages = include('pages.php');
+
+include('../../../../prado-3.0/buildscripts/texbuilder/Page2Tex.php');
+
+// ---------------- Create the Tex files ---------
+$count = 1;
+$j = 1;
+$current_path = '';
+echo "Compiling .page files to Latex files\n\n";
+
+$parser = new Page2Tex($base, dirname(__FILE__));
+
+foreach($pages as $chapter => $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 <h1>, <h2>, <3>
+ $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";
+ }
+}
+
+
+?>
diff --git a/buildscripts/texbuilder/sqlmap/pages.php b/buildscripts/texbuilder/sqlmap/pages.php
index adf788ff..57fff767 100644
--- a/buildscripts/texbuilder/sqlmap/pages.php
+++ b/buildscripts/texbuilder/sqlmap/pages.php
@@ -1,62 +1,62 @@
-<?php
-
-$pages['Introduction'] = array(
- 'Manual/Overview.page',
- 'Manual/BigPicture.page'
-);
-
-$pages['Installation and Setup'] = array(
- 'Manual/Installing.page',
- 'Manual/Configuring.page',
-// 'Manual/DataMapperConfiguration.page',
- 'Manual/ConfigurationElements.page'
-);
-
-$pages['SQLMap for PHP Tutorial'] = array(
- 'Manual/Tutorial/TestFirst.page',
- 'Manual/Tutorial/TestSecond.page',
- 'Manual/Tutorial/TestAgain.page'
-);
-
-$pages['Using SQLMap DataMapper'] = array(
- 'Manual/BuildingTSqlMapper.page',
- 'Manual/DataMapperAPI.page',
- 'Manual/CodingExamples.page'
-);
-
-$pages['Working with Data Maps'] = array(
- 'Manual/WorkingWithDataMaps.page',
-// 'Manual/DataMapDefinition.page',
- 'Manual/MappedStatements.page',
- 'Manual/TheSQL.page',
- 'Manual/StatementElementAttributes.page'
-);
-
-$pages['Parameter Maps and Inline Parameters'] = array(
- 'Manual/ParameterMap.page',
-// 'Manual/Parameter.page',
- 'Manual/InlineParameterMaps.page',
-// 'Manual/StandardTypeParameters.page',
-// 'Manual/ArrayTypeParameters.page'
-);
-
-$pages['Parameter Maps and Inline Parameters'] = array(
- 'Manual/ResultMaps.page',
-// 'Manual/ExtendingResultMaps.page',
- 'Manual/ResultMapAttributes.page',
-// 'Manual/ResultElements.page',
- 'Manual/CustomTypeHandlers.page',
- 'Manual/InheritanceMapping.page',
- 'Manual/ImplicitResultMaps.page',
- 'Manual/ComplexProperties.page',
- 'Manual/CompositeKeys.page'
-);
-
-$pages['Advanced Topics'] = array(
- 'Manual/CacheModels.page',
- 'Manual/DynamicSQL.page'
-);
-
-return $pages;
-
+<?php
+
+$pages['Introduction'] = array(
+ 'Manual/Overview.page',
+ 'Manual/BigPicture.page'
+);
+
+$pages['Installation and Setup'] = array(
+ 'Manual/Installing.page',
+ 'Manual/Configuring.page',
+// 'Manual/DataMapperConfiguration.page',
+ 'Manual/ConfigurationElements.page'
+);
+
+$pages['SQLMap for PHP Tutorial'] = array(
+ 'Manual/Tutorial/TestFirst.page',
+ 'Manual/Tutorial/TestSecond.page',
+ 'Manual/Tutorial/TestAgain.page'
+);
+
+$pages['Using SQLMap DataMapper'] = array(
+ 'Manual/BuildingTSqlMapper.page',
+ 'Manual/DataMapperAPI.page',
+ 'Manual/CodingExamples.page'
+);
+
+$pages['Working with Data Maps'] = array(
+ 'Manual/WorkingWithDataMaps.page',
+// 'Manual/DataMapDefinition.page',
+ 'Manual/MappedStatements.page',
+ 'Manual/TheSQL.page',
+ 'Manual/StatementElementAttributes.page'
+);
+
+$pages['Parameter Maps and Inline Parameters'] = array(
+ 'Manual/ParameterMap.page',
+// 'Manual/Parameter.page',
+ 'Manual/InlineParameterMaps.page',
+// 'Manual/StandardTypeParameters.page',
+// 'Manual/ArrayTypeParameters.page'
+);
+
+$pages['Parameter Maps and Inline Parameters'] = array(
+ 'Manual/ResultMaps.page',
+// 'Manual/ExtendingResultMaps.page',
+ 'Manual/ResultMapAttributes.page',
+// 'Manual/ResultElements.page',
+ 'Manual/CustomTypeHandlers.page',
+ 'Manual/InheritanceMapping.page',
+ 'Manual/ImplicitResultMaps.page',
+ 'Manual/ComplexProperties.page',
+ 'Manual/CompositeKeys.page'
+);
+
+$pages['Advanced Topics'] = array(
+ 'Manual/CacheModels.page',
+ 'Manual/DynamicSQL.page'
+);
+
+return $pages;
+
?> \ No newline at end of file