]> projects.mako.cc - fspm_howto/blobdiff - render_sgml
incorporated link fix from Brian Proffitt
[fspm_howto] / render_sgml
index 7ce4f1d38c178dd5f89c64e92b01f51907a0d666..ca55b21c6213e4b1b6a57fe06786495435aae51b 100755 (executable)
@@ -1,14 +1,27 @@
-#!/usr/bin/zsh
-mkdir -f ./tmp
-sgmltools --backend=onehtml FreeSoftwareProjectManagementHOWTO.sgml
-mv FreeSoftwareProjectManagementHOWTO.html ./tmp/FreeSoftwareProjectManagement-HOWTO.html
-sgmltools --backend=html FreeSoftwareProjectManagementHOWTO.sgml
-mv FreeSoftwareProjectManagementHOWTO ./tmp/FreeSoftwareProjectManagement-HOWTO
-sgmltools --backend=txt FreeSoftwareProjectManagementHOWTO.sgml
-mv FreeSoftwareProjectManagementHOWTO.txt ./tmp/FreeSoftwareProjectManagement-HOWTO.txt
-sgmltools --backend=ps FreeSoftwareProjectManagementHOWTO.sgml
-ps2pdf FreeSoftwareProjectManagementHOWTO.ps
-mv FreeSoftwareProjectManagementHOWTO.ps ./tmp/FreeSoftwareProjectManagement-HOWTO.ps
-mv FreeSoftwareProjectManagementHOWTO.pdf ./tmp/FreeSoftwareProjectManagement-HOWTO.pdf
-sgmltools --backend=rtf FreeSoftwareProjectManagementHOWTO.sgml
-mv FreeSoftwareProjectManagementHOWTO.rtf ./tmp/FreeSoftwareProjectManagement-HOWTO.rtf
+#!/usr/bin/make -f
+build:
+       sgmltools -v --backend=onehtml FreeSoftwareProjectManagementHOWTO.sgml
+       sgmltools -v --backend=html FreeSoftwareProjectManagementHOWTO.sgml
+       sgmltools -v --backend=txt FreeSoftwareProjectManagementHOWTO.sgml
+       sgmltools -v --backend=ps FreeSoftwareProjectManagementHOWTO.sgml
+       ps2pdf FreeSoftwareProjectManagementHOWTO.ps
+       sgmltools -v --backend=rtf FreeSoftwareProjectManagementHOWTO.sgml
+
+move:
+       mkdir -p ./tmp
+       mv -f FreeSoftwareProjectManagementHOWTO.html ./tmp/FreeSoftwareProjectManagement-HOWTO.html
+       mv -f FreeSoftwareProjectManagementHOWTO ./tmp/FreeSoftwareProjectManagement-HOWTO
+       mv -f FreeSoftwareProjectManagementHOWTO.txt ./tmp/FreeSoftwareProjectManagement-HOWTO.txt
+       mv -f FreeSoftwareProjectManagementHOWTO.ps ./tmp/FreeSoftwareProjectManagement-HOWTO.ps
+       mv -f FreeSoftwareProjectManagementHOWTO.pdf ./tmp/FreeSoftwareProjectManagement-HOWTO.pdf
+       mv -f FreeSoftwareProjectManagementHOWTO.rtf ./tmp/FreeSoftwareProjectManagement-HOWTO.rtf
+       cp -f FreeSoftwareProjectManagementHOWTO.sgml ./tmp/FreeSoftwareProjectManagement-HOWTO.sgml
+       gzip -c ./tmp/FreeSoftwareProjectManagement-HOWTO.ps > ./tmp/FreeSoftwareProjectManagement-HOWTO.ps.gz
+       gzip -c ./tmp/FreeSoftwareProjectManagement-HOWTO.sgml > ./tmp/FreeSoftwareProjectManagement-HOWTO.sgml.gz
+
+install: build move
+
+clean:
+       rm -rf FreeSoftwareProjectManagementHOwTO
+       rm -f FreeSoftwareProjectManagementHOWTO.html FreeSoftwareProjectManagement-HOWTO.txt FreeSoftwareProjectManagement-HOWTO.ps FreeSoftwareProjectManagement-HOWTO.pdf FreeSoftwareProjectManagement-HOWTO.rtf
+       rm -rf ./tmp
\ No newline at end of file

Benjamin Mako Hill || Want to submit a patch?