Jason McKesson avatar Jason McKesson committed 6332c7f

Distribution building works.

Comments (0)

Files changed (1)

 os.execute(clone);
 
 -------------------------------------------
--- Generate the ancillary README and index.html files.
+-- Generate the ancillary files
 
+--Readme.txt
+local readme = io.open(destDir .. "readme.txt", "wt");
+readme:write(string.format(
+[===[
+OpenGL Tutorials, version %s
 
+This is a series of tutorials on using OpenGL to do graphical rendering.
+The code for each tutorial is found in the "Tut *" directories. The code
+alone is not enough information to understand what is going on. The actual
+documentation is available in several forms.
 
+The HTML form of the documentation can be found by openning the "index.html"
+file. There are 3 PDF forms of the documentation. TutorialsComp.pdf is a PDF
+that uses very thin margins; it is useful for display on computers (or
+tablets). TutorialsPrint.pdf is a PDF designed for printing.
+TutorialsKindle.pdf is a PDF that is sized specifically for the screen of the
+Kindle 2.
 
+The source of the documentation is found in the Documents directory. This
+source documentation is in the DocBook 5 format. All other formats were
+generated automatically from these source files.
+]===], versionNum))
+readme:close()
 
+--Version.txt
+local version = io.open(destDir .. "version.txt", "wt");
+version:write(string.format(
+[===[
+OpenGL Tutorials.
 
+Version %s
+]===]
+, versionNum))
+version:close();
 
+--Index.html
+local index_html = io.open(destDir .. "index.html", "wt");
+index_html:write(
+[===[
+<html>
+<body>
+<h1>OpenGL Tutorials</h1>
+<p><a href="html/index.html">HTML Tutorials</a></p>
+</body>
+</html>
+]===]
+)
+index_html:close();
 
+
+
+
+
+
+
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.