├── .gitignore ├── .travis.opam ├── .travis.yml ├── AUTHORS ├── INSTALL.bmake.md ├── INSTALL.md ├── LICENSE ├── Library ├── Ancillary │ ├── autoinstall │ ├── fix_encoding_and_copyright.sh │ ├── insert_licence.ed │ ├── insert_licence.sh │ ├── rebase │ ├── svn_releng.sh │ ├── testtool │ ├── translate_date.sed │ └── travisci ├── Autoconf │ ├── config.guess │ ├── config.sub │ ├── install-sh │ └── ocaml.m4 ├── Make │ ├── bsdowl.assert.mk │ └── bsdowl.test.mk ├── Ports │ └── debian │ │ ├── changelog │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── docs │ │ ├── files │ │ ├── rules │ │ └── source │ │ └── format ├── Shell │ ├── cshrc │ └── zshrc └── Template │ └── makefile.mk ├── Makefile ├── Makefile.config.in ├── README.md ├── aclocal.m4 ├── bps ├── Makefile ├── bps.architecture.mk ├── bps.autoconf.mk ├── bps.bpsconfig.mk.in ├── bps.clean.mk ├── bps.configuration.mk ├── bps.credentials.mk ├── bps.external.mk ├── bps.files.mk ├── bps.init.mk ├── bps.m4.mk ├── bps.man.mk ├── bps.module.mk ├── bps.noweb.mk ├── bps.objdir.mk ├── bps.own.mk ├── bps.package.mk ├── bps.preparatives.mk ├── bps.product.mk ├── bps.project.mk ├── bps.replace.mk ├── bps.subdir.mk ├── bps.test-expected.mk ├── bps.usertarget.mk └── bps.uses.mk ├── config ├── Makefile ├── conf.dotfile.mk └── conf.freebsd.mk ├── configure.ac ├── doc ├── Architecure.md ├── BMake.md ├── BuildConcepts.md ├── CompatibilityCygwin.md ├── Configuration.md ├── DevelopElispMacros.md ├── DevelopOCamlSoftware.md ├── DevelopPerlScripts.md ├── DevelopShellScripts.md ├── Developer.md ├── Download.md ├── GenerateStaticWebsite.md ├── GettingStartedLaTeX.md ├── GettingStartedOCaml.md ├── Index.md ├── LaTeXDocument.md ├── Make.md ├── ManPages.md ├── ManageDotFiles.md ├── NowebLatex.md ├── Package.md └── PackageDebian.md ├── example ├── config │ └── dotfile │ │ ├── Makefile │ │ ├── dot.Xresources.m4 │ │ └── dot.cshrc ├── elisp │ ├── Makefile │ ├── emake1.el │ └── emake2.el ├── langc │ ├── heat │ │ ├── Library │ │ │ └── Configuration │ │ │ │ ├── Debug.mk │ │ │ │ ├── Mingw32.mk │ │ │ │ ├── Native.mk │ │ │ │ ├── Profile.mk │ │ │ │ └── Release.mk │ │ ├── Makefile │ │ ├── Makefile.config.in │ │ ├── Makefile.inc │ │ ├── configure.ac │ │ ├── goldenratio │ │ │ ├── Makefile │ │ │ └── goldenratio.c │ │ ├── libfibonacci │ │ │ ├── Makefile │ │ │ ├── fibonacci.c │ │ │ ├── fibonacci.h │ │ │ └── libfibonacci.3 │ │ └── librational │ │ │ ├── Makefile │ │ │ ├── librational.3 │ │ │ ├── rational.h │ │ │ ├── rational_operation.c │ │ │ ├── rational_print.c │ │ │ ├── rational_trace.c │ │ │ └── rational_trace.h │ ├── hello_assembly │ │ ├── Makefile │ │ ├── greeting.s │ │ ├── hello_world.1 │ │ └── hello_world.c │ ├── hello_autoconf │ │ ├── Makefile │ │ ├── Makefile.config.in │ │ ├── Makefile.local │ │ ├── configure.ac │ │ ├── hello_config.c.in │ │ ├── hello_world.1 │ │ └── hello_world.c │ ├── hello_world │ │ ├── Makefile │ │ ├── hello_world.1 │ │ └── hello_world.c │ ├── libfibonacci │ │ ├── Makefile │ │ ├── fibonacci.c │ │ ├── fibonacci.h │ │ └── libfibonacci.3 │ └── librational │ │ ├── Makefile │ │ ├── librational.3 │ │ ├── rational.h │ │ ├── rational_operation.c │ │ ├── rational_print.c │ │ ├── rational_trace.c │ │ └── rational_trace.h ├── ocaml │ ├── customtop │ │ ├── Makefile │ │ ├── custom_bootstrap.ml │ │ ├── custom_configuration.ml.in │ │ └── custom_library.ml │ ├── fibonacci │ │ ├── Makefile │ │ ├── fibonacci.ml │ │ └── fibonacci.mli │ ├── greetingtop │ │ ├── Makefile │ │ ├── greeting.ml │ │ └── greeting_stub.c │ ├── heat │ │ ├── Makefile │ │ ├── fibonacci │ │ │ ├── Makefile │ │ │ ├── fibonacci.ml │ │ │ └── fibonacci.mli │ │ ├── golden_ratio │ │ │ ├── Makefile │ │ │ └── main.ml │ │ ├── manual │ │ │ └── Makefile │ │ └── newton │ │ │ ├── Makefile │ │ │ ├── newton.ml │ │ │ ├── newton.mli │ │ │ └── test_newton.ml │ ├── minibasic │ │ ├── Makefile │ │ ├── basic_lexer.mli │ │ ├── basic_lexer.mll │ │ ├── basic_parser.mly │ │ ├── basic_types.ml │ │ ├── main.ml │ │ ├── minibasic.ml │ │ └── minibasic.mli │ ├── newton-meta │ │ ├── META.in │ │ ├── Makefile │ │ ├── newton.ml │ │ ├── newton.mli │ │ └── test_newton.ml │ ├── newton-pack │ │ ├── Makefile │ │ ├── newton.ml │ │ ├── newton.mli │ │ └── test_newton.ml │ ├── newton │ │ ├── Makefile │ │ ├── newton.ml │ │ ├── newton.mli │ │ └── test_newton.ml │ ├── rolling_stone │ │ ├── Makefile │ │ └── rolling_stone.ml │ └── wordcount │ │ ├── Makefile │ │ ├── wordcount.1 │ │ └── wordcount.ml ├── script │ ├── perl │ │ ├── selftest │ │ │ ├── Makefile │ │ │ ├── Selftest.3pm │ │ │ └── Selftest.pm │ │ └── showconfig │ │ │ ├── Makefile │ │ │ ├── showconfig.1 │ │ │ └── showconfig.pl │ ├── python │ │ ├── funniest │ │ │ ├── funniest │ │ │ │ ├── Makefile │ │ │ │ └── __init__.py │ │ │ └── setup.py │ │ └── showconfig │ │ │ ├── Makefile │ │ │ ├── showconfig.1 │ │ │ └── showconfig.py │ └── shell │ │ ├── selftest │ │ ├── Makefile │ │ ├── libselftest.3 │ │ └── libselftest.subr │ │ └── showconfig │ │ ├── Makefile │ │ ├── showconfig.1 │ │ └── showconfig.sh ├── texmf │ ├── bibtex │ │ ├── Makefile │ │ ├── galley.tex │ │ └── references.bib │ ├── complex │ │ ├── Makefile │ │ ├── chapter1 │ │ │ ├── Makefile │ │ │ ├── chapter1.tex │ │ │ └── galley.tex │ │ ├── chapter2 │ │ │ ├── Makefile │ │ │ ├── chapter2.tex │ │ │ ├── galley.tex │ │ │ ├── maketable.awk │ │ │ ├── square.mp │ │ │ └── table.d │ │ ├── macro │ │ │ └── preamble.tex │ │ └── main │ │ │ ├── Makefile │ │ │ └── complex.tex │ ├── draft │ │ ├── Makefile │ │ └── galley.tex │ ├── graphicx │ │ ├── Makefile │ │ ├── illustrated.tex │ │ └── square.mp │ ├── index │ │ ├── Makefile │ │ └── galley.tex │ ├── latex │ │ ├── Makefile │ │ └── simple.tex │ ├── metapost │ │ ├── Makefile │ │ ├── square.mp │ │ └── texlabel.mp │ ├── noweb │ │ ├── Makefile │ │ ├── Makefile.inc │ │ ├── class │ │ │ └── Makefile │ │ ├── example │ │ │ ├── Makefile │ │ │ └── sampleart.tex │ │ ├── manual │ │ │ ├── Makefile │ │ │ └── l2h.in │ │ └── src │ │ │ ├── shclasses.nw │ │ │ ├── shltx.nw │ │ │ ├── shltxbegin.nw │ │ │ ├── shltxend.nw │ │ │ ├── shmetal.nw │ │ │ ├── shpaper.nw │ │ │ ├── shplexos.nw │ │ │ └── shthm.nw │ └── tex │ │ ├── Makefile │ │ └── simple.tex └── www │ ├── .gitignore │ ├── Makefile │ ├── Mk │ └── scroll.mk │ ├── Template │ ├── Makefile │ ├── head-css.sgml │ ├── head-title.sgml │ ├── index.sgml │ ├── more-elink.sgml │ ├── more-ilink.sgml │ ├── more-news.sgml │ ├── page-content.sgml │ ├── page-footer.sgml │ ├── page-header.sgml │ └── page-title.sgml │ ├── generation │ ├── Makefile │ ├── head-title.sgml │ ├── page-content.sgml │ └── page-title.sgml │ ├── guidelines │ ├── Makefile │ ├── head-title.sgml │ ├── page-content.sgml │ └── page-title.sgml │ ├── index │ ├── Makefile │ ├── head-css-local.sgml │ ├── head-title.sgml │ ├── page-content.sgml │ └── page-title.sgml │ ├── ocaml │ ├── Makefile │ ├── head-title.sgml │ ├── page-content.sgml │ └── page-title.sgml │ ├── sgml │ ├── copyright-statement.sgml │ ├── head-css-global.sgml │ ├── main.sgml │ ├── more-download.sgml │ ├── more-elink.sgml │ ├── more-ilink.sgml │ ├── more-news.sgml │ ├── page-footer.sgml │ └── page-header.sgml │ ├── style │ ├── Makefile │ ├── classic.css │ ├── classic_sz.css │ ├── content.css │ ├── layout.css │ ├── modern.css │ ├── modern_sz.css │ ├── more.css │ ├── scroll_layout.css │ ├── title.css │ └── trendy.css │ ├── tex │ ├── Makefile │ ├── head-title.sgml │ ├── page-content.sgml │ └── page-title.sgml │ └── writing │ ├── Makefile │ ├── head-title.sgml │ ├── page-content.sgml │ └── page-title.sgml ├── langc ├── Makefile ├── langc.build.mk ├── langc.depend.mk ├── langc.external.mk ├── langc.init.mk ├── langc.lib.mk ├── langc.module.mk ├── langc.prog.mk └── langc.uses.mk ├── misc ├── Makefile ├── elisp.lib.mk ├── generic.files.mk ├── generic.project.mk ├── generic.subdir.mk └── generic.test.mk ├── noweb ├── Makefile ├── nwlatex.css └── nwlatex.tex ├── ocaml ├── Makefile ├── ocaml.build.mk ├── ocaml.compile.mk ├── ocaml.depend.mk ├── ocaml.dirs.mk ├── ocaml.external.mk ├── ocaml.find.mk ├── ocaml.init.mk ├── ocaml.lex.mk ├── ocaml.lib.mk ├── ocaml.main.mk ├── ocaml.manual.mk ├── ocaml.meta.mk ├── ocaml.module.mk ├── ocaml.object.mk ├── ocaml.odoc.mk ├── ocaml.pack.mk ├── ocaml.prog.mk ├── ocaml.source.mk ├── ocaml.tools.mk ├── ocaml.toplevel.mk ├── ocaml.uses.mk └── ocaml.yacc.mk ├── opam ├── descr ├── files │ └── remove.sh └── opam ├── script ├── Makefile ├── perl.init.mk ├── perl.lib.mk ├── perl.prog.mk ├── perl.uses.mk ├── python.init.mk ├── python.lib.mk ├── python.prog.mk ├── python.setuptools.mk ├── python.uses.mk ├── script.main.mk ├── shell.lib.mk └── shell.prog.mk ├── support ├── Makefile ├── mp2png.1 └── mp2png.sh ├── testsuite ├── .gitignore ├── bsdmake │ ├── AssertMakeOS.mk │ ├── AssertOneWord.mk │ └── Makefile ├── config │ └── TestDotfile.mk ├── langc │ ├── TestComplex.mk │ ├── TestComplexMultiple.mk │ ├── TestLibrary.mk │ ├── TestProgram.mk │ ├── TestProgramAssembly.mk │ └── TestProgramAutoconf.mk ├── misc │ └── TestElisp.mk ├── ocaml │ ├── test_complex │ │ └── TestComplex.mk │ ├── test_depends │ │ ├── TestExternalDependency.mk │ │ └── TestInternalDependency.mk │ ├── test_library │ │ ├── TestLibrary.mk │ │ ├── TestLibraryDoc.mk │ │ ├── TestLibraryDynlink.mk │ │ ├── TestLibraryFindlib.mk │ │ └── TestPack.mk │ ├── test_program │ │ ├── .gitignore │ │ ├── TestProgram.mk │ │ ├── TestProgramExternalFindlib.mk │ │ ├── TestProgramExternalOCaml.mk │ │ └── TestProgramLexerParser.mk │ └── test_toplevel │ │ ├── TestToplevel.mk │ │ └── TestToplevelCustom.mk ├── script │ ├── Makefile │ ├── test_perl │ │ ├── Makefile │ │ ├── TestPerlModule.mk │ │ └── TestPerlProgram.mk │ ├── test_python │ │ ├── TestLibrary.mk │ │ └── TestProgram.mk │ └── test_shell │ │ ├── TestLibrary.mk │ │ └── TestProgram.mk ├── texmf │ ├── TestBibtex.mk │ ├── TestComplex.mk │ ├── TestDraft.mk │ ├── TestIndex.mk │ ├── TestInteraction.mk │ ├── TestLaTeX.mk │ ├── TestLaTeXGraphicx.mk │ ├── TestMetapostPure.mk │ ├── TestMetapostTeX.mk │ ├── TestNoweb.mk │ └── TestPlain.mk └── www │ └── TestSimpleStatic.mk ├── texmf ├── Makefile ├── latex.doc.mk ├── latex.files.mk ├── mpost.doc.mk ├── mpost.files.mk ├── plain.files.mk ├── tex.doc.mk ├── texmf.bibtex.mk ├── texmf.build.mk ├── texmf.clean.mk ├── texmf.depend.mk ├── texmf.draft.mk ├── texmf.external.mk ├── texmf.index.mk ├── texmf.init.mk ├── texmf.module.mk ├── texmf.mpost.mk └── texmf.uses.mk └── www ├── Makefile ├── www.files.mk └── www.sgml.mk /.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile.config 2 | /Makefile.local 3 | bps/bps.bpsconfig.mk 4 | configure 5 | autom4te.cache/ 6 | config.log 7 | config.status 8 | support/mp2eps 9 | support/mp2pdf 10 | support/mp2png 11 | texmf/tex.device.pdf.mk 12 | texmf/tex.driver.pdftex.mk 13 | /Wiki/ 14 | .product 15 | -------------------------------------------------------------------------------- /.travis.opam: -------------------------------------------------------------------------------- 1 | compiler: 2 | - 4.00.1 3 | - 4.01.0 4 | - 4.02.3 5 | - 4.03.0 6 | - 4.04.0 7 | repository: 8 | - ocamlfind 9 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | sudo: false 3 | addons: 4 | apt: 5 | sources: 6 | - avsm 7 | packages: 8 | - gawk 9 | - gnupg 10 | - graphicsmagick 11 | - latex-xcolor 12 | - lmodern 13 | - m4 14 | - noweb 15 | - ocaml 16 | - opam 17 | - opensp 18 | - sgml-data 19 | - sqlite3 20 | - texlive-font-utils 21 | - texlive-fonts-recommended 22 | - texlive-lang-french 23 | - texlive-latex-base 24 | - texlive-latex-extra 25 | - texlive-latex-recommended 26 | - texlive-metapost 27 | - tidy 28 | install: sh -ex ./Library/Ancillary/autoinstall bmake opam 29 | script: sh -ex ./Library/Ancillary/travisci 30 | env: 31 | - TRAVIS_OCAML_VERSION=4.02.3 TRAVIS_FULL=no 32 | - TRAVIS_OCAML_VERSION=4.02.3 TRAVIS_FULL=yes 33 | - TRAVIS_OCAML_VERSION=4.03.0 TRAVIS_FULL=no 34 | - TRAVIS_OCAML_VERSION=4.03.0 TRAVIS_FULL=yes 35 | - TRAVIS_OCAML_VERSION=4.04.0 TRAVIS_FULL=no 36 | - TRAVIS_OCAML_VERSION=4.04.0 TRAVIS_FULL=yes 37 | cache: 38 | directories: 39 | - ${HOME}/.local 40 | - ${HOME}/.opam 41 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | Michael Grünewald 2 | -------------------------------------------------------------------------------- /Library/Ancillary/autoinstall: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ### autoinstall -- Autoinstall for Travis CI 4 | 5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | # This file is part of BSD Owl Scripts 7 | # 8 | # Copyright © 2015 Michael Grünewald. All Rights Reserved. 9 | # 10 | # This file must be used under the terms of the BSD license. 11 | # This source file is licensed as described in the file LICENSE, which 12 | # you should have received as part of this distribution. 13 | 14 | : ${local:=${HOME}/.local} 15 | : ${srcdir:=${HOME}/.local/sources} 16 | 17 | if [ -f "${local}/.anvil_autoinstall_cached" ]; then exit 0; fi 18 | 19 | git clone 'https://github.com/michipili/anvil' "${srcdir}/anvil" 20 | /bin/sh -ex "${srcdir}/anvil/subr/anvil_travisci_autoinstall.sh" "$@"\ 21 | && touch "${local}/.anvil_autoinstall_cached" 22 | 23 | ### End of file `autoinstall' 24 | -------------------------------------------------------------------------------- /Library/Ancillary/insert_licence.ed: -------------------------------------------------------------------------------- 1 | /^# $Id/ 2 | +1i 3 | 4 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 5 | # This file is part of BSD Owl Scripts 6 | # 7 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 8 | # 9 | # This file must be used under the terms of the BSD license. 10 | # This source file is licensed as described in the file LICENSE, which 11 | # you should have received as part of this distribution. 12 | . 13 | w 14 | q 15 | -------------------------------------------------------------------------------- /Library/Ancillary/insert_licence.sh: -------------------------------------------------------------------------------- 1 | ### insert_licence.sh 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Mar 13 23:01:35 CET 2008 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | find ../../ -name '*.mk' | while read item; do 16 | printf 'Modifiying %s\n' $item 17 | ex $item < insert_licence.ed 18 | done 19 | 20 | ### End of file `insert_licence.sh' 21 | -------------------------------------------------------------------------------- /Library/Ancillary/rebase: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | ### rebase -- Rebase topic branches 4 | 5 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | # This file is part of BSD Owl Scripts 7 | # 8 | # Copyright © 2015 Michael Grünewald. All Rights Reserved. 9 | # 10 | # This file must be used under the terms of the BSD license. 11 | # This source file is licensed as described in the file LICENSE, which 12 | # you should have received as part of this distribution. 13 | 14 | topic_branch_list() 15 | { 16 | git branch | sed -n -e 's/^..//;/^topic/p' 17 | } 18 | 19 | 20 | topic_branch_rebase() 21 | { 22 | local branch 23 | 24 | while read "branch"; do 25 | git rebase --onto master master "${branch}" 26 | done 27 | } 28 | 29 | topic_branch_list | topic_branch_rebase 30 | 31 | ### End of file `rebase' 32 | -------------------------------------------------------------------------------- /Library/Make/bsdowl.assert.mk: -------------------------------------------------------------------------------- 1 | ### bsdowl.assert.mk 2 | 3 | # Author: Michael Grünewald 4 | # Date: Tue Dec 2 22:40:47 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | all configure depend build doc test install clean distclean realclean: 16 | ${NOP} 17 | 18 | .include "bps.init.mk" 19 | 20 | ### End of file `bsdowl.assert.mk' 21 | -------------------------------------------------------------------------------- /Library/Ports/debian/changelog: -------------------------------------------------------------------------------- 1 | bsdowl (1.4-1) unstable; urgency=low 2 | 3 | * Initial release (Closes: #nnnn) 4 | 5 | -- Michael Grünewald Wed, 01 Jun 2011 16:21:42 +0200 6 | -------------------------------------------------------------------------------- /Library/Ports/debian/compat: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /Library/Ports/debian/control: -------------------------------------------------------------------------------- 1 | Source: bsdowl 2 | Section: devel 3 | Priority: optional 4 | Maintainer: Michael Grünewald 5 | Build-Depends: debhelper (>= 7.0.50~), autotools-dev, pmake 6 | Standards-Version: 3.8.4 7 | Homepage: https://bitbucket.org/michipili/bsdowl 8 | Vcs-Svn: svn://svn.gna.org/svn/bsdowl 9 | Vcs-Browser: http://svn.gna.org/viewcvs/bsdowl/ 10 | 11 | Package: bsdowl 12 | Architecture: all 13 | Depends: ${misc:Depends} 14 | Suggests: noweb, ocaml 15 | Description: BSD Make template files for TeX, OCaml, NOWEB and more 16 | BSD Owl Scripts is a group of BSD Make template files. They 17 | are written mich in the spirit of FreeBSD's Make template files, with 18 | portability in mind: they can also be used on GNU/Linux systems, Mac 19 | OS X and Sun Solaris. Currently available scripts may be used for 20 | OCaml projects and (La)TeX documents or macros. 21 | -------------------------------------------------------------------------------- /Library/Ports/debian/docs: -------------------------------------------------------------------------------- 1 | README 2 | TODO 3 | -------------------------------------------------------------------------------- /Library/Ports/debian/files: -------------------------------------------------------------------------------- 1 | bsdowl_1.4-1_all.deb devel optional 2 | -------------------------------------------------------------------------------- /Library/Ports/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # -*- makefile -*- 3 | 4 | MAKETOOL=env -u MAKELEVEL -u MAKEFLAGS -u MFLAGS /usr/bin/pmake DESTDIR=${CURDIR}/debian/bsdowl 5 | 6 | %: 7 | dh "$@" 8 | 9 | override_dh_auto_build: 10 | ${MAKETOOL} build 11 | 12 | override_dh_auto_clean: 13 | ${MAKETOOL} clean 14 | 15 | override_dh_auto_install: 16 | ${MAKETOOL} install 17 | -------------------------------------------------------------------------------- /Library/Ports/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /Library/Shell/cshrc: -------------------------------------------------------------------------------- 1 | # 2 | # Configuration of Make 3 | # 4 | unsetenv MAKEFLAGS 5 | unsetenv MAKEOBJDIR 6 | -------------------------------------------------------------------------------- /Library/Shell/zshrc: -------------------------------------------------------------------------------- 1 | # 2 | # Configuration of Make 3 | # 4 | unset MAKEFLAGS 5 | unset MAKEOBJDIR 6 | -------------------------------------------------------------------------------- /Library/Template/makefile.mk: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo 'We prepare a new makefile' 4 | read -p 'filename: ' FILENAME 5 | read -p 'comment: ' COMMENT 6 | DATE=`date` 7 | 8 | m4 -g\ 9 | -D __FILENAME__="${FILENAME}" \ 10 | -D __COMMENT__="${COMMENT}" \ 11 | -D __DATE__="${DATE}" \ 12 | -D __YEAR__="${YEAR}" \ 13 | > ${FILENAME} <<'EOF' 14 | changecom()dnl 15 | changequote(,)dnl 16 | ### __FILENAME__ -- __COMMENT__ 17 | 18 | # Author: Michael Grünewald 19 | # Date: __DATE__ 20 | 21 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 22 | # This file is part of BSD Owl Scripts 23 | # 24 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 25 | # 26 | # This file must be used under the terms of the BSD license. 27 | # This source file is licensed as described in the file LICENSE, which 28 | # you should have received as part of this distribution. 29 | 30 | 31 | ### SYNOPSIS 32 | 33 | ### DESCRIPTION 34 | 35 | .if !target(__<__FILENAME__>__) 36 | __<__FILENAME__>__: 37 | 38 | .endif # !target(__<__FILENAME__>__) 39 | 40 | ### End of file `__FILENAME__' 41 | EOF 42 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- BSD Owl 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Feb 10 16:50:40 GMT 2006 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PACKAGE= bsdowl 16 | OFFICER= michipili@gmail.com 17 | VERSION= 3.0.0-current 18 | 19 | SUBDIR+= bps 20 | SUBDIR+= ocaml 21 | SUBDIR+= texmf 22 | SUBDIR+= langc 23 | SUBDIR+= noweb 24 | SUBDIR+= config 25 | SUBDIR+= script 26 | SUBDIR+= misc 27 | SUBDIR+= www 28 | SUBDIR+= support 29 | 30 | CONFIGURE= Makefile.inc.in 31 | CONFIGURE+= bps/bps.bpsconfig.mk.in 32 | CONFIGURE+= testsuite/Makefile.inc.in 33 | PROJECTDISTEXCLUDE= Wiki 34 | 35 | test: .PHONY 36 | ${.CURDIR}/Library/Ancillary/testtool -D -I -a 37 | 38 | .MAKEFLAGS: -I${.CURDIR}/Library/Make 39 | .for subdir in ${SUBDIR} 40 | .MAKEFLAGS: -I${.CURDIR}/${subdir} 41 | .endfor 42 | 43 | .include "generic.project.mk" 44 | 45 | ### End of file `Makefile' 46 | -------------------------------------------------------------------------------- /bps/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Core facilities 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Feb 10 16:51:08 GMT 2006 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | SHARE= bps.init.mk 16 | SHARE+= bps.bpsconfig.mk 17 | SHARE+= bps.package.mk 18 | SHARE+= bps.uses.mk 19 | SHARE+= bps.module.mk 20 | SHARE+= bps.external.mk 21 | SHARE+= bps.product.mk 22 | SHARE+= bps.architecture.mk 23 | SHARE+= bps.configuration.mk 24 | SHARE+= bps.credentials.mk 25 | SHARE+= bps.objdir.mk 26 | SHARE+= bps.own.mk 27 | SHARE+= bps.man.mk 28 | SHARE+= bps.usertarget.mk 29 | SHARE+= bps.clean.mk 30 | SHARE+= bps.subdir.mk 31 | SHARE+= bps.files.mk 32 | SHARE+= bps.autoconf.mk 33 | SHARE+= bps.preparatives.mk 34 | SHARE+= bps.replace.mk 35 | SHARE+= bps.project.mk 36 | SHARE+= bps.m4.mk 37 | SHARE+= bps.noweb.mk 38 | SHARE+= bps.test-expected.mk 39 | 40 | .include "generic.files.mk" 41 | 42 | ### End of file `Makefile' 43 | -------------------------------------------------------------------------------- /config/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Configuration files 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Nov 20 14:08:48 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | SHARE= conf.dotfile.mk 16 | SHARE+= conf.freebsd.mk 17 | 18 | .include "generic.files.mk" 19 | 20 | ### End of file `Makefile' 21 | -------------------------------------------------------------------------------- /doc/Download.md: -------------------------------------------------------------------------------- 1 | # Download BSD Owl Scripts 2 | 3 | You can get a distribution tarball suitable for installation from the 4 | [release area](https://github.com/michipili/bsdowl/releases). 5 | 6 | If you are interested in modifying the software, you can clone the GIT 7 | repository: 8 | 9 | ``` 10 | https://github.com/michipili/bsdowl.git 11 | ``` 12 | 13 | If you are running a UNIX like system for which BSD Make *is not 14 | available* as a package, you should consider [building it from source](BMake). 15 | For this, you should download 16 | [bmake.tar.gz](http://void.crufty.net/ftp/pub/sjg/bmake.tar.gz) 17 | and 18 | [mk.tar.gz](http://void.crufty.net/ftp/pub/sjg/mk.tar.gz) 19 | distributd by Simon J. Garrety. 20 | 21 | FreeBSD, NetBSD, OpenBSD and most Linux Distributions already provides 22 | BSD Make, wether as part of the base system or as a third party 23 | package. 24 | 25 | It seems that BSD Make is also packaged for Cygwin, but some users 26 | experienced troubles with that package. 27 | -------------------------------------------------------------------------------- /doc/ManPages.md: -------------------------------------------------------------------------------- 1 | # Installation of man pages 2 | 3 | The library `bps.man.mk` defines targets to build and install manual pages and 4 | hooks them to the build and installation processes. 5 | 6 | The list of manual pages to install must be conveyed by the *MAN* 7 | variable. Other variables can be used to configure the process, as 8 | described in `bps.man.mk`. 9 | 10 | Modules building a program or a library or any product documented by a 11 | manual page should lookup for manual pages to automatically add them 12 | to the *MAN* variable. For instance, a module building a program 13 | `wordcount` should look for files `wordcount.1` and `wordcount.8` and 14 | add them to *MAN* if they exist. 15 | -------------------------------------------------------------------------------- /doc/NowebLatex.md: -------------------------------------------------------------------------------- 1 | # Using NOWEB to write TeX or LaTeX macros 2 | 3 | Norman Ramsey's [NOWEB](http://www.cs.tufts.edu/~nr/noweb/) literate 4 | programming tool can be used to write TeX or LaTeX macros. 5 | 6 | ## The Makefile 7 | 8 | The Makefile must declare several variables: 9 | 10 | - _NOWEB_ enumerates your NOWEB files; 11 | - _NOTANGLE_ enumerates the code files that need to be 12 | generated from the NOWEB files; 13 | - _NOWEAVE_ 14 | -------------------------------------------------------------------------------- /example/config/dotfile/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Test support for dotfiles 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 15:51:24 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOTFILE= dot.cshrc 16 | DOTFILE+= dot.Xresources 17 | 18 | .include "conf.dotfile.mk" 19 | 20 | ### End of file `Makefile' 21 | -------------------------------------------------------------------------------- /example/config/dotfile/dot.cshrc: -------------------------------------------------------------------------------- 1 | ### dot.cshrc -- Configuration file for the C-shell 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 15:52:11 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | setenv PAGER less 16 | 17 | ### End of file `dot.cshrc' 18 | -------------------------------------------------------------------------------- /example/elisp/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Test misc.elisp.mk 2 | 3 | LIBRARY= emake 4 | 5 | SRCS= emake1.el 6 | SRCS+= emake2.el 7 | 8 | .include "elisp.lib.mk" 9 | 10 | ### End of file `Makefile' 11 | -------------------------------------------------------------------------------- /example/langc/heat/Library/Configuration/Debug.mk: -------------------------------------------------------------------------------- 1 | ### Debug -- Debug configuration profile 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Nov 6 19:02:01 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | WITH_DEBUG= yes 16 | 17 | ### End of file `Debug' 18 | -------------------------------------------------------------------------------- /example/langc/heat/Library/Configuration/Mingw32.mk: -------------------------------------------------------------------------------- 1 | ### Mingw32 -- Mingw32 build settings 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 16 12:03:36 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | CC= ${MINGW32CC} 16 | AR= ${MINGW32AR} 17 | 18 | .if "${THISMODULE}" == "langc.prog" 19 | .for program in ${PROGRAM} 20 | BINNAME.${program:T}= ${program}.exe 21 | .endfor 22 | .endif 23 | 24 | ### End of file `Mingw32' 25 | -------------------------------------------------------------------------------- /example/langc/heat/Library/Configuration/Native.mk: -------------------------------------------------------------------------------- 1 | ### Native -- Native build settings 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 16 12:03:36 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | ### End of file `Native' 16 | -------------------------------------------------------------------------------- /example/langc/heat/Library/Configuration/Profile.mk: -------------------------------------------------------------------------------- 1 | ### Profile -- Profile configuration profile 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | WITH_PROFILE= yes 13 | 14 | ### End of file `Profile' 15 | -------------------------------------------------------------------------------- /example/langc/heat/Library/Configuration/Release.mk: -------------------------------------------------------------------------------- 1 | ### Release -- Release configuration profile 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | ### End of file `Release' 13 | -------------------------------------------------------------------------------- /example/langc/heat/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A complex heat generating program 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 14 10:56:08 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PACKAGE= heat 16 | VERSION= 0.1-current 17 | OFFICER?= michipili@gmail.com 18 | 19 | MODULE= langc.lib:librational 20 | MODULE+= langc.lib:libfibonacci 21 | MODULE+= langc.prog:goldenratio 22 | 23 | do-configure: 24 | (cd ${.CURDIR} && autoconf && ./configure) 25 | 26 | do-test: goldenratio/goldenratio 27 | ${.ALLSRC:tA} 28 | 29 | .include "generic.project.mk" 30 | 31 | ### End of file `Makefile' 32 | -------------------------------------------------------------------------------- /example/langc/heat/Makefile.inc: -------------------------------------------------------------------------------- 1 | ### Makefile -- A complex heat generating program 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 14 10:56:08 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | # Local Variables: 16 | # mode: makefile 17 | # End: 18 | 19 | ### End of file `Makefile' 20 | -------------------------------------------------------------------------------- /example/langc/heat/configure.ac: -------------------------------------------------------------------------------- 1 | dnl Process this file with autoconf to produce a configure script. 2 | AC_INIT([goldenratio/goldenratio.c]) 3 | AC_CHECK_PROGS([MINGW32CC], [mingw32-gcc i586-mingw32msvc-cc], [no]) 4 | AC_SUBST([MINGW32CC]) 5 | AC_CHECK_PROGS([MINGW32AR], [mingw32-ar i586-mingw32msvc-ar], [no]) 6 | AC_SUBST([MINGW32AR]) 7 | AC_CONFIG_FILES([Makefile.config]) 8 | AC_OUTPUT 9 | -------------------------------------------------------------------------------- /example/langc/heat/goldenratio/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A very simple program 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Nov 15 16:10:58 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PROGRAM= goldenratio 16 | 17 | SRCS= goldenratio.c 18 | 19 | .include "langc.prog.mk" 20 | 21 | ### End of file `Makefile' 22 | -------------------------------------------------------------------------------- /example/langc/heat/libfibonacci/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Library for computing Fibonacci numbers 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 14 22:55:51 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | LIBRARY= fibonacci 16 | 17 | SRCS= fibonacci.h 18 | SRCS+= fibonacci.c 19 | 20 | .include "langc.lib.mk" 21 | 22 | ### End of file `Makefile' 23 | -------------------------------------------------------------------------------- /example/langc/heat/libfibonacci/fibonacci.c: -------------------------------------------------------------------------------- 1 | /* Fibonacci numbers library 2 | 3 | Author: Michael Grünewald 4 | Date: Fri Nov 7 22:39:42 CET 2014 5 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | This file is part of BSD Owl Scripts 7 | 8 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 9 | 10 | This file must be used under the terms of the BSD license. 11 | This source file is licensed as described in the file LICENSE, which 12 | you should have received as part of this distribution. */ 13 | 14 | #include "fibonacci.h" 15 | 16 | int 17 | fibonacci(int n) 18 | { 19 | if(n < 0) { 20 | return 0; 21 | } else if(n == 0 || n == 1) { 22 | return 1; 23 | } else { 24 | return fibonacci(n-1) + fibonacci(n-2); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /example/langc/heat/libfibonacci/fibonacci.h: -------------------------------------------------------------------------------- 1 | #ifndef FIBONACCI_H 2 | #define FIBONACCI_H 3 | 4 | /* Fibonacci numbers library 5 | 6 | Author: Michael Grünewald 7 | Date: Fri Nov 14 10:51:40 CET 2014 8 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 9 | This file is part of BSD Owl Scripts 10 | 11 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 12 | 13 | This file must be used under the terms of the BSD license. 14 | This source file is licensed as described in the file LICENSE, which 15 | you should have received as part of this distribution. */ 16 | 17 | int fibonacci(int n); 18 | #endif 19 | -------------------------------------------------------------------------------- /example/langc/heat/librational/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A very simple library 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | LIBRARY= rational 13 | 14 | APIVERSION= 1 15 | LIBVERSION= ${APIVERSION}.0.0 16 | 17 | SRCS= rational.h 18 | SRCS+= rational_trace.h 19 | SRCS+= rational_trace.c 20 | SRCS+= rational_operation.c 21 | SRCS+= rational_print.c 22 | 23 | MAN= librational.3 24 | 25 | 26 | .include "langc.lib.mk" 27 | 28 | ### End of `Makefile' 29 | -------------------------------------------------------------------------------- /example/langc/heat/librational/rational_print.c: -------------------------------------------------------------------------------- 1 | /* Rational numbers library 2 | 3 | Author: Michael Grünewald 4 | Date: Fri Nov 7 22:39:42 CET 2014 5 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | This file is part of BSD Owl Scripts 7 | 8 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 9 | 10 | This file must be used under the terms of the BSD license. 11 | This source file is licensed as described in the file LICENSE, which 12 | you should have received as part of this distribution. */ 13 | 14 | #include "rational.h" 15 | #include "rational_trace.h" 16 | 17 | int 18 | rational_print(const struct rational* a) 19 | { 20 | rational_printf("rational_print"); 21 | return printf("%d/%d", a->p, a->q); 22 | } 23 | -------------------------------------------------------------------------------- /example/langc/heat/librational/rational_trace.c: -------------------------------------------------------------------------------- 1 | /* Rational numbers library 2 | 3 | Author: Michael Grünewald 4 | Date: Fri Nov 7 22:39:42 CET 2014 5 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | This file is part of BSD Owl Scripts 7 | 8 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 9 | 10 | This file must be used under the terms of the BSD license. 11 | This source file is licensed as described in the file LICENSE, which 12 | you should have received as part of this distribution. */ 13 | 14 | #include 15 | #include 16 | #include "rational.h" 17 | #include "rational_trace.h" 18 | 19 | int 20 | rational_printf(const char *format, ...) 21 | { 22 | int status = 0; 23 | va_list args; 24 | if(rational_trace) 25 | { 26 | va_start(args, format); 27 | status = printf("Trace: rational: "); 28 | status+= vprintf(format, args); 29 | va_end(args); 30 | } 31 | return status; 32 | } 33 | -------------------------------------------------------------------------------- /example/langc/heat/librational/rational_trace.h: -------------------------------------------------------------------------------- 1 | #ifndef RATIONAL_TRACE_H 2 | #define RATIONAL_TRACE_H 3 | /* Rational numbers library 4 | 5 | Author: Michael Grünewald 6 | Date: Fri Nov 7 22:39:42 CET 2014 7 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 8 | This file is part of BSD Owl Scripts 9 | 10 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 11 | 12 | This file must be used under the terms of the BSD license. 13 | This source file is licensed as described in the file LICENSE, which 14 | you should have received as part of this distribution. */ 15 | 16 | #include 17 | 18 | int rational_printf(const char*, ...); 19 | #endif 20 | -------------------------------------------------------------------------------- /example/langc/hello_assembly/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- The obnoxious hello world program 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | PROGRAM= hello_world 13 | 14 | SRCS= hello_world.c 15 | SRCS+= greeting.s 16 | 17 | .include "langc.prog.mk" 18 | 19 | ### End of file `Makefile' 20 | -------------------------------------------------------------------------------- /example/langc/hello_assembly/greeting.s: -------------------------------------------------------------------------------- 1 | /* greeting.s -- Some greeting 2 | 3 | Author: Michael Grünewald 4 | Date: Thu Nov 20 11:59:02 CET 2014 5 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | This file is part of BSD Owl Scripts 7 | 8 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 9 | 10 | This file must be used under the terms of the BSD license. 11 | This source file is licensed as described in the file LICENSE, which 12 | you should have received as part of this distribution. */ 13 | 14 | .globl _greeting, greeting 15 | .data 16 | _greeting_text: .asciz "Hello, assembly!" 17 | _greeting: 18 | greeting: 19 | .quad _greeting_text 20 | -------------------------------------------------------------------------------- /example/langc/hello_assembly/hello_world.1: -------------------------------------------------------------------------------- 1 | .\" hello_world.1 -- Count bytes, words and lines in a file 2 | .\" 3 | .\" BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | .\" This file is part of BSD Owl Scripts 5 | .\" 6 | .\" Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | .\" 8 | .\" This file must be used under the terms of the BSD license. 9 | .\" This source file is licensed as described in the file LICENSE, which 10 | .\" you should have received as part of this distribution. 11 | .\" 12 | .Dd November 7, 2014 13 | .Dt HELLO_WORLD 1 14 | .Os 15 | .Sh NAME 16 | .Nm hello_world 17 | .Nd send a greeting to the world 18 | .Sh SYNOPSIS 19 | .Nm hello_world 20 | .Sh DESCRIPTION 21 | The 22 | .Nm 23 | utility displays a cheerful greeting. 24 | .Sh HISTORY 25 | The 26 | .Nm 27 | command appeared as a demonstration program for bsdowl, it is inspired 28 | by a famous example by Kernighan and Ritchie. 29 | .Sh AUTHORS 30 | .An -nosplit 31 | This simplistic 32 | .Nm 33 | program was written by 34 | .An Michael Gr\(:unewald Aq michipili@gmail.com . 35 | -------------------------------------------------------------------------------- /example/langc/hello_assembly/hello_world.c: -------------------------------------------------------------------------------- 1 | /* hello_world.c -- The obnoxious hello world program 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. */ 10 | 11 | #include 12 | #include 13 | 14 | extern const char* greeting; 15 | 16 | int 17 | main(void) 18 | { 19 | printf("%s\n", greeting); 20 | } 21 | -------------------------------------------------------------------------------- /example/langc/hello_autoconf/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- The obnoxious hello world program 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | PROGRAM= hello_world 13 | 14 | SRCS= hello_config.c 15 | SRCS+= hello_world.c 16 | 17 | 18 | # The configure script will not fully expand variables in files 19 | # processed by AC_CONFIG_FILES, this is why rely on the generic 20 | # replacement mechanism provided by `bps.replace.mk' to perform this 21 | # replacement. 22 | 23 | REPLACESUBST= ${STDREPLACESUBST} 24 | REPLACEFILE+= hello_config.c.in 25 | 26 | 27 | # The configure script will produce a `Makefile.config' file 28 | # containing configured variables. This file should be removed as 29 | # part of the `realclean' target, which is accomplished by the 30 | # following statement. 31 | 32 | CONFIGURE= Makefile.config.in 33 | 34 | 35 | .include "langc.prog.mk" 36 | 37 | ### End of file `Makefile' 38 | -------------------------------------------------------------------------------- /example/langc/hello_autoconf/Makefile.config.in: -------------------------------------------------------------------------------- 1 | ### @autoconf_input@ 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | prefix?= @prefix@ 13 | exec_prefix?= @exec_prefix@ 14 | bindir?= @bindir@ 15 | sbindir?= @sbindir@ 16 | libexecdir?= @libexecdir@ 17 | datarootdir?= @datarootdir@ 18 | datadir?= @datadir@ 19 | sysconfdir?= @sysconfdir@ 20 | sharedstatedir?= @sharedstatedir@ 21 | localstatedir?= @localstatedir@ 22 | runstatedir?= @runstatedir@ 23 | includedir?= @includedir@ 24 | docdir?= @docdir@ 25 | infodir?= @infodir@ 26 | libdir?= @libdir@ 27 | localedir?= @localedir@ 28 | mandir?= @mandir@ 29 | 30 | PREFIX?= ${prefix} 31 | EXEC_PREFIX?= ${exec_prefix} 32 | DATAROOTDIR?= ${datarootdir} 33 | 34 | # Local Variables: 35 | # mode: makefile 36 | # End: 37 | 38 | ### End of file `Makefile.config.in' 39 | -------------------------------------------------------------------------------- /example/langc/hello_autoconf/configure.ac: -------------------------------------------------------------------------------- 1 | dnl Process this file with autoconf to produce a configure script. 2 | AC_INIT([hello_world.c]) 3 | AC_CONFIG_FILES([Makefile.config]) 4 | AC_OUTPUT 5 | -------------------------------------------------------------------------------- /example/langc/hello_autoconf/hello_world.1: -------------------------------------------------------------------------------- 1 | .\" hello_world.1 -- Count bytes, words and lines in a file 2 | .\" 3 | .\" BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | .\" This file is part of BSD Owl Scripts 5 | .\" 6 | .\" Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | .\" 8 | .\" This file must be used under the terms of the BSD license. 9 | .\" This source file is licensed as described in the file LICENSE, which 10 | .\" you should have received as part of this distribution. 11 | .\" 12 | .Dd November 7, 2014 13 | .Dt HELLO_WORLD 1 14 | .Os 15 | .Sh NAME 16 | .Nm hello_world 17 | .Nd send a greeting to the world 18 | .Sh SYNOPSIS 19 | .Nm hello_world 20 | .Sh DESCRIPTION 21 | The 22 | .Nm 23 | utility displays a cheerful greeting. 24 | .Sh HISTORY 25 | The 26 | .Nm 27 | command appeared as a demonstration program for bsdowl, it is inspired 28 | by a famous example by Kernighan and Ritchie. 29 | .Sh AUTHORS 30 | .An -nosplit 31 | This simplistic 32 | .Nm 33 | program was written by 34 | .An Michael Gr\(:unewald Aq michipili@gmail.com . 35 | -------------------------------------------------------------------------------- /example/langc/hello_autoconf/hello_world.c: -------------------------------------------------------------------------------- 1 | /* hello_world.c -- The obnoxious hello world program 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. */ 10 | 11 | #include 12 | #include 13 | 14 | void print_config(); 15 | 16 | int 17 | main(void) 18 | { 19 | printf("Hello, World!\n"); 20 | print_config(); 21 | } 22 | -------------------------------------------------------------------------------- /example/langc/hello_world/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- The obnoxious hello world program 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | PROGRAM= hello_world 13 | 14 | .include "langc.prog.mk" 15 | 16 | ### End of file `Makefile' 17 | -------------------------------------------------------------------------------- /example/langc/hello_world/hello_world.1: -------------------------------------------------------------------------------- 1 | .\" hello_world.1 -- Count bytes, words and lines in a file 2 | .\" 3 | .\" BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | .\" This file is part of BSD Owl Scripts 5 | .\" 6 | .\" Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | .\" 8 | .\" This file must be used under the terms of the BSD license. 9 | .\" This source file is licensed as described in the file LICENSE, which 10 | .\" you should have received as part of this distribution. 11 | .\" 12 | .Dd November 7, 2014 13 | .Dt HELLO_WORLD 1 14 | .Os 15 | .Sh NAME 16 | .Nm hello_world 17 | .Nd send a greeting to the world 18 | .Sh SYNOPSIS 19 | .Nm hello_world 20 | .Sh DESCRIPTION 21 | The 22 | .Nm 23 | utility displays a cheerful greeting. 24 | .Sh HISTORY 25 | The 26 | .Nm 27 | command appeared as a demonstration program for bsdowl, it is inspired 28 | by a famous example by Kernighan and Ritchie. 29 | .Sh AUTHORS 30 | .An -nosplit 31 | This simplistic 32 | .Nm 33 | program was written by 34 | .An Michael Gr\(:unewald Aq michipili@gmail.com . 35 | -------------------------------------------------------------------------------- /example/langc/hello_world/hello_world.c: -------------------------------------------------------------------------------- 1 | /* hello_world.c -- The obnoxious hello world program 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. */ 10 | 11 | #include 12 | #include 13 | 14 | int 15 | main(void) 16 | { 17 | printf("Hello, World!\n"); 18 | } 19 | -------------------------------------------------------------------------------- /example/langc/libfibonacci/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Library for computing Fibonacci numbers 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 14 22:55:51 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | LIBRARY= fibonacci 16 | 17 | SRCS= fibonacci.h 18 | SRCS+= fibonacci.c 19 | 20 | .include "langc.lib.mk" 21 | 22 | ### End of file `Makefile' 23 | -------------------------------------------------------------------------------- /example/langc/libfibonacci/fibonacci.c: -------------------------------------------------------------------------------- 1 | /* Fibonacci numbers library 2 | 3 | Author: Michael Grünewald 4 | Date: Fri Nov 7 22:39:42 CET 2014 5 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | This file is part of BSD Owl Scripts 7 | 8 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 9 | 10 | This file must be used under the terms of the BSD license. 11 | This source file is licensed as described in the file LICENSE, which 12 | you should have received as part of this distribution. */ 13 | 14 | #include "fibonacci.h" 15 | 16 | int 17 | fibonacci(int n) 18 | { 19 | if(n < 0) { 20 | return 0; 21 | } else if(n == 0 || n == 1) { 22 | return 1; 23 | } else { 24 | return fibonacci(n-1) + fibonacci(n-2); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /example/langc/libfibonacci/fibonacci.h: -------------------------------------------------------------------------------- 1 | #ifndef FIBONACCI_H 2 | #define FIBONACCI_H 3 | 4 | /* Fibonacci numbers library 5 | 6 | Author: Michael Grünewald 7 | Date: Fri Nov 14 10:51:40 CET 2014 8 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 9 | This file is part of BSD Owl Scripts 10 | 11 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 12 | 13 | This file must be used under the terms of the BSD license. 14 | This source file is licensed as described in the file LICENSE, which 15 | you should have received as part of this distribution. */ 16 | 17 | int fibonacci(int n); 18 | #endif 19 | -------------------------------------------------------------------------------- /example/langc/libfibonacci/libfibonacci.3: -------------------------------------------------------------------------------- 1 | .\" libfibonacci.3 -- Compute on fibonacci numbers 2 | .\" 3 | .\" Author: Michael Grünewald 4 | .\" Date: Fri Nov 7 23:09:33 CET 2014 5 | .\" 6 | .\" BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | .\" This file is part of BSD Owl Scripts 8 | .\" 9 | .\" Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | .\" 11 | .\" This file must be used under the terms of the BSD license. 12 | .\" This source file is licensed as described in the file LICENSE, which 13 | .\" you should have received as part of this distribution. 14 | .\" 15 | .Dd November 14, 2014 16 | .Dt LIBFIBONACCI 3 17 | .Os 18 | .Sh NAME 19 | .Nm libfibonacci 20 | .Nd Compute fibonacci numbers 21 | .Sh LIBRARY 22 | .Lb libfibonacci 23 | .Sh SYNOPSIS 24 | .In fibonacci.h 25 | .Sh DESCRIPTION 26 | The 27 | .Lb libfibonacci 28 | provides a function computing Fibonacci numbers. 29 | .Sh SEE ALSO 30 | The 31 | .Em GNU multiple precision arithmetic library 32 | is a starting point if you actually need to compute Fibonacci 33 | numbers. 34 | .Sh HISTORY 35 | The 36 | .Nm 37 | library appeared as a demonstration library for bsdowl. 38 | .Sh AUTHORS 39 | .An -nosplit 40 | This heat generating 41 | .Nm 42 | library was written by 43 | .An Michael Gr\(:unewald Aq michipili@gmail.com . 44 | -------------------------------------------------------------------------------- /example/langc/librational/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A very simple library 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | LIBRARY= rational 13 | 14 | APIVERSION= 1 15 | LIBVERSION= ${APIVERSION}.0.0 16 | 17 | SRCS= rational.h 18 | SRCS+= rational_trace.h 19 | SRCS+= rational_trace.c 20 | SRCS+= rational_operation.c 21 | SRCS+= rational_print.c 22 | 23 | MAN= librational.3 24 | 25 | 26 | .include "langc.lib.mk" 27 | 28 | ### End of `Makefile' 29 | -------------------------------------------------------------------------------- /example/langc/librational/rational_print.c: -------------------------------------------------------------------------------- 1 | /* Rational numbers library 2 | 3 | Author: Michael Grünewald 4 | Date: Fri Nov 7 22:39:42 CET 2014 5 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | This file is part of BSD Owl Scripts 7 | 8 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 9 | 10 | This file must be used under the terms of the BSD license. 11 | This source file is licensed as described in the file LICENSE, which 12 | you should have received as part of this distribution. */ 13 | 14 | #include "rational.h" 15 | #include "rational_trace.h" 16 | 17 | int 18 | rational_print(const struct rational* a) 19 | { 20 | rational_printf("rational_print"); 21 | return printf("%d/%d", a->p, a->q); 22 | } 23 | -------------------------------------------------------------------------------- /example/langc/librational/rational_trace.c: -------------------------------------------------------------------------------- 1 | /* Rational numbers library 2 | 3 | Author: Michael Grünewald 4 | Date: Fri Nov 7 22:39:42 CET 2014 5 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | This file is part of BSD Owl Scripts 7 | 8 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 9 | 10 | This file must be used under the terms of the BSD license. 11 | This source file is licensed as described in the file LICENSE, which 12 | you should have received as part of this distribution. */ 13 | 14 | #include 15 | #include 16 | #include "rational.h" 17 | #include "rational_trace.h" 18 | 19 | int 20 | rational_printf(const char *format, ...) 21 | { 22 | int status = 0; 23 | va_list args; 24 | if(rational_trace) 25 | { 26 | va_start(args, format); 27 | status = printf("Trace: rational: "); 28 | status+= vprintf(format, args); 29 | va_end(args); 30 | } 31 | return status; 32 | } 33 | -------------------------------------------------------------------------------- /example/langc/librational/rational_trace.h: -------------------------------------------------------------------------------- 1 | #ifndef RATIONAL_TRACE_H 2 | #define RATIONAL_TRACE_H 3 | /* Rational numbers library 4 | 5 | Author: Michael Grünewald 6 | Date: Fri Nov 7 22:39:42 CET 2014 7 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 8 | This file is part of BSD Owl Scripts 9 | 10 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 11 | 12 | This file must be used under the terms of the BSD license. 13 | This source file is licensed as described in the file LICENSE, which 14 | you should have received as part of this distribution. */ 15 | 16 | #include 17 | 18 | int rational_printf(const char*, ...); 19 | #endif 20 | -------------------------------------------------------------------------------- /example/ocaml/customtop/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Prepare an OCaml toplevel 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Dec 28 18:15:21 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TOPLEVEL= custom_toplevel 16 | 17 | EXTERNAL+= ocaml.findlib:compiler-libs 18 | 19 | SRCS= custom_configuration.ml 20 | SRCS+= custom_library.ml 21 | SRCS+= custom_bootstrap.ml 22 | 23 | REPLACESUBST= ${STDREPLACESUBST} 24 | REPLACEFILE= custom_configuration.ml.in 25 | 26 | .include "ocaml.toplevel.mk" 27 | 28 | ### End of file `Makefile' 29 | -------------------------------------------------------------------------------- /example/ocaml/customtop/custom_configuration.ml.in: -------------------------------------------------------------------------------- 1 | (* Custom_configuration -- Configuration for our custom toplevel 2 | 3 | Author: Michael Grünewald 4 | Date: Mon Dec 29 11:22:17 CET 2014 5 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | This file is part of BSD Owl Scripts 7 | 8 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 9 | 10 | This file must be used under the terms of the BSD license. 11 | This source file is licensed as described in the file LICENSE, which 12 | you should have received as part of this distribution. *) 13 | 14 | let project = "bsdowl" 15 | let officer = "michipili@gmail.com" 16 | let version = "@VERSION@" 17 | let prefix = "@prefix@" 18 | let exec_prefix = "@exec_prefix@" 19 | let bindir = "@bindir@" 20 | let sbindir = "@sbindir@" 21 | let libexecdir = "@libexecdir@" 22 | let datarootdir = "@datarootdir@" 23 | let datadir = "@datadir@" 24 | let sysconfdir = "@sysconfdir@" 25 | let sharedstatedir = "@sharedstatedir@" 26 | let localstatedir = "@localstatedir@" 27 | let runstatedir = "@runstatedir@" 28 | let includedir = "@includedir@" 29 | let docdir = "@docdir@" 30 | let infodir = "@infodir@" 31 | let libdir = "@libdir@" 32 | let localedir = "@localedir@" 33 | let mandir = "@mandir@" 34 | -------------------------------------------------------------------------------- /example/ocaml/customtop/custom_library.ml: -------------------------------------------------------------------------------- 1 | (* Custom_library -- Our custom library 2 | 3 | Author: Michael Grünewald 4 | Date: Sat Jan 3 15:00:00 CET 2015 5 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | This file is part of BSD Owl Scripts 7 | 8 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 9 | 10 | This file must be used under the terms of the BSD license. 11 | This source file is licensed as described in the file LICENSE, which 12 | you should have received as part of this distribution. *) 13 | module Thing : sig 14 | type t 15 | val make : unit -> t 16 | val format : Format.formatter -> t -> unit 17 | end = struct 18 | type t = unit 19 | let make () = () 20 | let format ppt () = 21 | Format.pp_print_string ppt "Something strange" 22 | end 23 | -------------------------------------------------------------------------------- /example/ocaml/fibonacci/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Newton's method 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Oct 5 20:40:24 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | LIBRARY= fibonacci 16 | SRCS+= fibonacci.ml 17 | 18 | LIBS= nums 19 | 20 | .include "ocaml.lib.mk" 21 | 22 | ### End of file `Makefile' 23 | -------------------------------------------------------------------------------- /example/ocaml/fibonacci/fibonacci.ml: -------------------------------------------------------------------------------- 1 | (* Fibonacci -- Compute Fibonacci numbers 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | open Num 11 | 12 | let rec fibo_num n = 13 | match n with 14 | | 0 -> Int 1 15 | | 1 -> Int 1 16 | | n -> add_num (fibo_num (n-1)) (fibo_num(n-2)) 17 | 18 | let calc n = 19 | if n < 0 then 20 | invalid_arg "Fibonacci.calc" 21 | else 22 | fibo_num n 23 | 24 | let phi_string n = 25 | let p, q = calc (n+1), calc n in 26 | let phi = div_num p q in 27 | approx_num_fix 8 phi 28 | -------------------------------------------------------------------------------- /example/ocaml/fibonacci/fibonacci.mli: -------------------------------------------------------------------------------- 1 | (* Fibonacci -- Compute Fibonacci numbers 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | (** Compute Fibonacci numbers. 12 | 13 | The 0-th and 1-st Fibonacci numbers [F_0] and [F_1] are 1, and then [F_n+2 14 | = F_n + F_n+1]. *) 15 | val calc : int -> Num.num 16 | 17 | val phi_string : int -> string 18 | -------------------------------------------------------------------------------- /example/ocaml/greetingtop/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Prepare an OCaml custom toplevel 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Jan 3 16:18:30 CET 2015 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TOPLEVEL= custom_toplevel 16 | 17 | # We provide a quick and dirty way to produce the C object, but in 18 | # real projects, it is reasonable to write a small library as a 19 | # separate project module to provide all the required stubs. 20 | 21 | SRCS= greeting.ml 22 | SRCS+= greeting_stub.c 23 | 24 | EXTERNAL+= ocaml.findlib:compiler-libs 25 | 26 | .include "ocaml.toplevel.mk" 27 | 28 | ### End of file `Makefile' 29 | -------------------------------------------------------------------------------- /example/ocaml/greetingtop/greeting.ml: -------------------------------------------------------------------------------- 1 | (* Greeting -- Say hello 2 | 3 | Author: Michael Grünewald 4 | Date: Sat Jan 3 16:31:02 CET 2015 5 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | This file is part of BSD Owl Scripts 7 | 8 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 9 | 10 | This file must be used under the terms of the BSD license. 11 | This source file is licensed as described in the file LICENSE, which 12 | you should have received as part of this distribution. *) 13 | 14 | external hello_world : unit -> unit = "hello_world" 15 | 16 | let () = hello_world () 17 | -------------------------------------------------------------------------------- /example/ocaml/greetingtop/greeting_stub.c: -------------------------------------------------------------------------------- 1 | /* greeting_stub.c -- OCaml stubs to greet people 2 | 3 | Author: Michael Grünewald 4 | Date: Sat Jan 3 16:25:15 CET 2015 5 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 6 | This file is part of BSD Owl Scripts 7 | 8 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 9 | 10 | This file must be used under the terms of the BSD license. 11 | This source file is licensed as described in the file LICENSE, which 12 | you should have received as part of this distribution. */ 13 | 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | value hello_world(value unit) 22 | { 23 | CAMLparam1 (unit); 24 | printf("Hello, world!\n"); 25 | CAMLreturn (Val_unit); 26 | } 27 | -------------------------------------------------------------------------------- /example/ocaml/heat/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Mini project 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Oct 13 10:50:45 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PACKAGE= golden_ratio 16 | VERSION= 1.0.0 17 | OFFICER= michipili@gmail.com 18 | 19 | MODULE= ocaml.lib:fibonacci 20 | MODULE+= ocaml.lib:newton 21 | MODULE+= ocaml.prog:golden_ratio 22 | MODULE+= ocaml.manual:manual 23 | 24 | EXTERNAL= ocaml.findlib:num 25 | 26 | .include "generic.project.mk" 27 | 28 | ### End of file `Makefile' 29 | -------------------------------------------------------------------------------- /example/ocaml/heat/fibonacci/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Newton's method 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Oct 5 20:40:24 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | LIBRARY= fibonacci 16 | SRCS+= fibonacci.ml 17 | 18 | .include "ocaml.lib.mk" 19 | 20 | ### End of file `Makefile' 21 | -------------------------------------------------------------------------------- /example/ocaml/heat/fibonacci/fibonacci.ml: -------------------------------------------------------------------------------- 1 | (* Fibonacci -- Compute Fibonacci numbers 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | open Num 11 | 12 | let rec fibo_num n = 13 | match n with 14 | | 0 -> Int 1 15 | | 1 -> Int 1 16 | | n -> add_num (fibo_num (n-1)) (fibo_num(n-2)) 17 | 18 | let calc n = 19 | if n < 0 then 20 | invalid_arg "Fibonacci.calc" 21 | else 22 | fibo_num n 23 | 24 | let phi_string n = 25 | let p, q = calc (n+1), calc n in 26 | let phi = div_num p q in 27 | approx_num_fix 8 phi 28 | -------------------------------------------------------------------------------- /example/ocaml/heat/fibonacci/fibonacci.mli: -------------------------------------------------------------------------------- 1 | (* Fibonacci -- Compute Fibonacci numbers 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | (** Compute Fibonacci numbers. 12 | 13 | The 0-th and 1-st Fibonacci numbers [F_0] and [F_1] are 1, and then [F_n+2 14 | = F_n + F_n+1]. *) 15 | val calc : int -> Num.num 16 | 17 | val phi_string : int -> string 18 | -------------------------------------------------------------------------------- /example/ocaml/heat/golden_ratio/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Computing the golden ratio 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Oct 5 20:47:48 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PROGRAM= golden_ratio 16 | 17 | SRCS= main.ml 18 | 19 | .include "ocaml.prog.mk" 20 | 21 | ### End of file `Makefile' 22 | -------------------------------------------------------------------------------- /example/ocaml/heat/golden_ratio/main.ml: -------------------------------------------------------------------------------- 1 | (* Main -- Compute golden ratio approximations 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | open Printf 11 | 12 | let rec loop iter n x = 13 | printf "%02d %12.8f %s\n" n x (Fibonacci.phi_string n); 14 | if n < iter then 15 | loop iter (succ n) (Newton.phi_iter x) 16 | 17 | let () = 18 | loop 20 0 1.0 19 | -------------------------------------------------------------------------------- /example/ocaml/heat/manual/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Preparation of the golden_ratio manual 2 | 3 | # Author: Michael Grünewald 4 | # Date: Tue Oct 15 21:37:11 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | ODOC_TITLE= Golden Ratio 16 | 17 | .include "ocaml.manual.mk" 18 | 19 | ### End of file `Makefile' 20 | -------------------------------------------------------------------------------- /example/ocaml/heat/newton/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Newton's method 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Oct 3 23:39:20 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | LIBRARY= newton 16 | SRCS+= newton.ml 17 | 18 | .include "ocaml.lib.mk" 19 | 20 | ### End of file `Makefile' 21 | -------------------------------------------------------------------------------- /example/ocaml/heat/newton/newton.ml: -------------------------------------------------------------------------------- 1 | (* Newton -- Newton's method 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | let iter dx f x0 = 12 | let y = f x0 in 13 | let dy= (f(x0 +. dx) -. y) in 14 | x0 -. dx *. y /. dy 15 | 16 | let phi_iter x0 = 17 | (x0 *. x0 +. 1.0) /. (2.0 *. x0 -. 1.0) 18 | -------------------------------------------------------------------------------- /example/ocaml/heat/newton/newton.mli: -------------------------------------------------------------------------------- 1 | (* Newton -- Newton's method 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | (** Newton's method. *) 12 | 13 | val iter : float -> (float -> float) -> float -> float 14 | (** [iter dx f x0] is the Newton iterate obtained by applying one time 15 | Newton's method to [f] and [x0], using the infinitesimal [dx]. 16 | 17 | It assumes the function [f] is defined for every real number. *) 18 | 19 | val phi_iter : float -> float 20 | (** [phi_iter x0] is the Newton iterate following [x0] and converging 21 | the golden ratio [phi]. *) 22 | -------------------------------------------------------------------------------- /example/ocaml/heat/newton/test_newton.ml: -------------------------------------------------------------------------------- 1 | #load "newton.cma";; 2 | open Printf;; 3 | 4 | let rec loop n x = 5 | printf "%02d %12.8f\n" n x; 6 | if n > 0 then 7 | loop (pred n) (Newton.phi_iter x) 8 | ;; 9 | 10 | let () = 11 | loop 6 1.0 12 | ;; 13 | -------------------------------------------------------------------------------- /example/ocaml/minibasic/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Mini Basic 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Oct 18 07:48:45 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PROG= minibasic 16 | 17 | SRCS= basic_types.ml 18 | SRCS+= basic_parser.mly 19 | SRCS+= basic_lexer.mll 20 | SRCS+= minibasic.ml 21 | SRCS+= main.ml 22 | 23 | .include "ocaml.prog.mk" 24 | 25 | ### End of file `Makefile' 26 | -------------------------------------------------------------------------------- /example/ocaml/minibasic/basic_lexer.mli: -------------------------------------------------------------------------------- 1 | val lexer : Lexing.lexbuf -> Basic_parser.token 2 | -------------------------------------------------------------------------------- /example/ocaml/minibasic/basic_types.ml: -------------------------------------------------------------------------------- 1 | type op_unr = OPPOSE | NON ;; 2 | type op_bin = PLUS | MOINS | MULT | DIV | MOD 3 | | EGAL | INF | INFEQ | SUP | SUPEQ | DIFF 4 | | ET | OU ;; 5 | type expression = 6 | ExpInt of int 7 | | ExpVar of string 8 | | ExpStr of string 9 | | ExpUnr of op_unr * expression 10 | | ExpBin of expression * op_bin * expression ;; 11 | type instruction = 12 | Rem of string 13 | | Goto of int 14 | | Print of expression 15 | | Input of string 16 | | If of expression * int 17 | | Let of string * expression ;; 18 | type ligne = { num : int ; inst : instruction } ;; 19 | type program = ligne list ;; 20 | type phrase = Ligne of ligne | List | Run | End ;; 21 | -------------------------------------------------------------------------------- /example/ocaml/minibasic/main.ml: -------------------------------------------------------------------------------- 1 | (* Main -- A mini basic interpreter 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | open Minibasic.Basic_types 11 | 12 | module Binding = 13 | Map.Make(String) 14 | 15 | module Program = 16 | Map.Make(struct type t = int let compare = Pervasives.compare end) 17 | 18 | type env = { 19 | env_binding: expression Binding.t; 20 | env_program: ligne Program.t; 21 | } 22 | 23 | let rec eval_phrase env = function 24 | | Ligne ({ num; inst } as ligne) -> 25 | { env with env_program = Program.add num ligne env.env_program } 26 | | List -> failwith "Not implemented" 27 | | Run -> failwith "Not implemented" 28 | | End -> exit 0 29 | 30 | let () = 31 | failwith "Not implemented" 32 | -------------------------------------------------------------------------------- /example/ocaml/minibasic/minibasic.ml: -------------------------------------------------------------------------------- 1 | module Basic_types = 2 | struct 3 | 4 | type op_unr = OPPOSE | NON 5 | type op_bin = PLUS | MOINS | MULT | DIV | MOD 6 | | EGAL | INF | INFEQ | SUP | SUPEQ | DIFF 7 | | ET | OU 8 | type expression = 9 | ExpInt of int 10 | | ExpVar of string 11 | | ExpStr of string 12 | | ExpUnr of op_unr * expression 13 | | ExpBin of expression * op_bin * expression 14 | type instruction = 15 | Rem of string 16 | | Goto of int 17 | | Print of expression 18 | | Input of string 19 | | If of expression * int 20 | | Let of string * expression 21 | type ligne = { num : int ; inst : instruction } 22 | type program = ligne list 23 | type phrase = Ligne of ligne | List | Run | End 24 | 25 | 26 | end 27 | -------------------------------------------------------------------------------- /example/ocaml/minibasic/minibasic.mli: -------------------------------------------------------------------------------- 1 | module Basic_types : 2 | sig 3 | 4 | type op_unr = OPPOSE | NON 5 | type op_bin = PLUS | MOINS | MULT | DIV | MOD 6 | | EGAL | INF | INFEQ | SUP | SUPEQ | DIFF 7 | | ET | OU 8 | type expression = 9 | ExpInt of int 10 | | ExpVar of string 11 | | ExpStr of string 12 | | ExpUnr of op_unr * expression 13 | | ExpBin of expression * op_bin * expression 14 | type instruction = 15 | Rem of string 16 | | Goto of int 17 | | Print of expression 18 | | Input of string 19 | | If of expression * int 20 | | Let of string * expression 21 | type ligne = { num : int ; inst : instruction } 22 | type program = ligne list 23 | type phrase = Ligne of ligne | List | Run | End 24 | 25 | 26 | end 27 | -------------------------------------------------------------------------------- /example/ocaml/newton-meta/META.in: -------------------------------------------------------------------------------- 1 | name="@PACKAGE@" 2 | version="@VERSION@" 3 | description="The Newton method to solve functional equations" 4 | 5 | archive(byte)="newton.cma" 6 | archive(native)+="newton.cmxa" 7 | -------------------------------------------------------------------------------- /example/ocaml/newton-meta/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Newton's method 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Oct 3 23:39:20 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | LIBRARY= newton 16 | SRCS+= newton.ml 17 | 18 | do-test: newton.cma test_newton.ml .PHONY 19 | ocaml ${.ALLSRC} 20 | 21 | .include "ocaml.lib.mk" 22 | 23 | ### End of file `Makefile' 24 | -------------------------------------------------------------------------------- /example/ocaml/newton-meta/newton.ml: -------------------------------------------------------------------------------- 1 | (* Newton -- Newton's method 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | let iter dx f x0 = 12 | let y = f x0 in 13 | let dy= (f(x0 +. dx) -. y) in 14 | x0 -. dx *. y /. dy 15 | 16 | let phi_iter x0 = 17 | (x0 *. x0 +. 1.0) /. (2.0 *. x0 -. 1.0) 18 | -------------------------------------------------------------------------------- /example/ocaml/newton-meta/newton.mli: -------------------------------------------------------------------------------- 1 | (* Newton -- Newton's method 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | (** Newton's method. *) 12 | 13 | val iter : float -> (float -> float) -> float -> float 14 | (** [iter dx f x0] is the Newton iterate obtained by applying one time 15 | Newton's method to [f] and [x0], using the infinitesimal [dx]. 16 | 17 | It assumes the function [f] is defined for every real number. *) 18 | 19 | val phi_iter : float -> float 20 | (** [phi_iter x0] is the Newton iterate following [x0] and converging 21 | the golden ratio [phi]. *) 22 | -------------------------------------------------------------------------------- /example/ocaml/newton-meta/test_newton.ml: -------------------------------------------------------------------------------- 1 | #load "newton.cma";; 2 | open Printf;; 3 | 4 | let rec loop n x = 5 | printf "%02d %12.8f\n" n x; 6 | if n > 0 then 7 | loop (pred n) (Newton.phi_iter x) 8 | ;; 9 | 10 | let () = 11 | loop 6 1.0 12 | ;; 13 | -------------------------------------------------------------------------------- /example/ocaml/newton-pack/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Newton's method 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Oct 3 23:39:20 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PACK= newtonlib 16 | SRCS+= newton.ml 17 | 18 | .include "ocaml.pack.mk" 19 | 20 | ### End of file `Makefile' 21 | -------------------------------------------------------------------------------- /example/ocaml/newton-pack/newton.ml: -------------------------------------------------------------------------------- 1 | (* Newton -- Newton's method 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | let iter dx f x0 = 12 | let y = f x0 in 13 | let dy= (f(x0 +. dx) -. y) in 14 | x0 -. dx *. y /. dy 15 | 16 | let phi_iter x0 = 17 | (x0 *. x0 +. 1.0) /. (2.0 *. x0 -. 1.0) 18 | -------------------------------------------------------------------------------- /example/ocaml/newton-pack/newton.mli: -------------------------------------------------------------------------------- 1 | (* Newton -- Newton's method 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | (** Newton's method. *) 12 | 13 | val iter : float -> (float -> float) -> float -> float 14 | (** [iter dx f x0] is the Newton iterate obtained by applying one time 15 | Newton's method to [f] and [x0], using the infinitesimal [dx]. 16 | 17 | It assumes the function [f] is defined for every real number. *) 18 | 19 | val phi_iter : float -> float 20 | (** [phi_iter x0] is the Newton iterate following [x0] and converging 21 | the golden ratio [phi]. *) 22 | -------------------------------------------------------------------------------- /example/ocaml/newton-pack/test_newton.ml: -------------------------------------------------------------------------------- 1 | #load "newton.cma";; 2 | open Printf;; 3 | 4 | let rec loop n x = 5 | printf "%02d %12.8f\n" n x; 6 | if n > 0 then 7 | loop (pred n) (Newton.phi_iter x) 8 | ;; 9 | 10 | let () = 11 | loop 6 1.0 12 | ;; 13 | -------------------------------------------------------------------------------- /example/ocaml/newton/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Newton's method 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Oct 3 23:39:20 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | LIBRARY= newton 16 | SRCS+= newton.ml 17 | 18 | do-test: newton.cma test_newton.ml .PHONY 19 | ocaml ${.ALLSRC} 20 | 21 | .include "ocaml.lib.mk" 22 | 23 | ### End of file `Makefile' 24 | -------------------------------------------------------------------------------- /example/ocaml/newton/newton.ml: -------------------------------------------------------------------------------- 1 | (* Newton -- Newton's method 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | let iter dx f x0 = 12 | let y = f x0 in 13 | let dy= (f(x0 +. dx) -. y) in 14 | x0 -. dx *. y /. dy 15 | 16 | let phi_iter x0 = 17 | (x0 *. x0 +. 1.0) /. (2.0 *. x0 -. 1.0) 18 | -------------------------------------------------------------------------------- /example/ocaml/newton/newton.mli: -------------------------------------------------------------------------------- 1 | (* Newton -- Newton's method 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | (** Newton's method. *) 12 | 13 | val iter : float -> (float -> float) -> float -> float 14 | (** [iter dx f x0] is the Newton iterate obtained by applying one time 15 | Newton's method to [f] and [x0], using the infinitesimal [dx]. 16 | 17 | It assumes the function [f] is defined for every real number. *) 18 | 19 | val phi_iter : float -> float 20 | (** [phi_iter x0] is the Newton iterate following [x0] and converging 21 | the golden ratio [phi]. *) 22 | -------------------------------------------------------------------------------- /example/ocaml/newton/test_newton.ml: -------------------------------------------------------------------------------- 1 | #load "newton.cma";; 2 | open Printf;; 3 | 4 | let rec loop n x = 5 | printf "%02d %12.8f\n" n x; 6 | if n > 0 then 7 | loop (pred n) (Newton.phi_iter x) 8 | ;; 9 | 10 | let () = 11 | loop 6 1.0 12 | ;; 13 | -------------------------------------------------------------------------------- /example/ocaml/rolling_stone/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- How does it feel, when you have no home? 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Oct 3 22:42:23 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PROGRAM= rolling_stone 16 | EXTERNAL= ocaml.findlib:unix 17 | 18 | .include "ocaml.prog.mk" 19 | 20 | ### End of file `Makefile' 21 | -------------------------------------------------------------------------------- /example/ocaml/rolling_stone/rolling_stone.ml: -------------------------------------------------------------------------------- 1 | (* rolling_stone -- How does it feel? 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | let ( |> ) x f = 12 | f x 13 | 14 | let is_without_a_home () = 15 | try (Unix.getenv "HOME" |> ignore; false) 16 | with Not_found -> true 17 | 18 | let how_does_it_feel () = 19 | if is_without_a_home () then 20 | "Just like a rolling stone." 21 | else 22 | "There is no place like home." 23 | 24 | let main () = 25 | how_does_it_feel () 26 | |> print_endline 27 | 28 | let () = main () 29 | -------------------------------------------------------------------------------- /example/ocaml/wordcount/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Counting characters and lines in a file 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Oct 3 22:42:23 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PROGRAM= wordcount 16 | 17 | .include "ocaml.prog.mk" 18 | 19 | ### End of file `Makefile' 20 | -------------------------------------------------------------------------------- /example/ocaml/wordcount/wordcount.1: -------------------------------------------------------------------------------- 1 | .\" wordcount.1 -- Count bytes, words and lines in a file 2 | .\" 3 | .\" Author: Michael Grünewald 4 | .\" Date: Fri Oct 17 14:22:58 CEST 2014 5 | .\" 6 | .\" BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | .\" This file is part of BSD Owl Scripts 8 | .\" 9 | .\" Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | .\" 11 | .\" This file must be used under the terms of the BSD license. 12 | .\" This source file is licensed as described in the file LICENSE, which 13 | .\" you should have received as part of this distribution. 14 | .\" 15 | .Dd October 17, 2014 16 | .Dt WORDCOUNT 1 17 | .Os 18 | .Sh NAME 19 | .Nm wordcount 20 | .Nd count bytes, words and lines on stdin 21 | .Sh SYNOPSIS 22 | .Nm wordcount 23 | .Sh DESCRIPTION 24 | The 25 | .Nm 26 | utility displays the number of bytes, lines and words found on stdin. 27 | A word is defined as a sequence of small or capital letters. 28 | .Sh SEE ALSO 29 | .Xr wc 1 30 | .Sh HISTORY 31 | The 32 | .Nm 33 | command appeared as a demonstration program for bsdowl. 34 | .Sh AUTHORS 35 | .An -nosplit 36 | This simplistic version of the 37 | .Nm 38 | program was written by 39 | .An Michael Gr\(:unewald Aq michipili@gmail.com . 40 | -------------------------------------------------------------------------------- /example/ocaml/wordcount/wordcount.ml: -------------------------------------------------------------------------------- 1 | (* Wordcount -- Count characters and words on stdin 2 | BSD Owl Scripts (https://github.com/michipili/bsdowl) 3 | This file is part of BSD Owl Scripts 4 | 5 | Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 6 | 7 | This file must be used under the terms of the BSD license. 8 | This source file is licensed as described in the file LICENSE, which 9 | you should have received as part of this distribution. *) 10 | 11 | let is_word c = 12 | (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') 13 | 14 | let rec loop chan wordflag nc nw nl = 15 | let next = 16 | try Some(input_char chan) 17 | with End_of_file -> None 18 | in 19 | match next with 20 | | Some '\n' -> loop chan false (succ nc) nw (succ nl) 21 | | Some c -> ( match is_word c, wordflag with 22 | | true, true 23 | | false, false -> loop chan wordflag (succ nc) nw nl 24 | | true, false -> loop chan true (succ nc) (succ nw) nl 25 | | false, true -> loop chan false (succ nc) nw nl 26 | ) 27 | | None -> (nc, nw, nl) 28 | 29 | let main () = 30 | let (nc, nw, nl) = loop stdin false 0 0 1 in 31 | Printf.printf "%d %d %d\n" nc nw nl 32 | 33 | let () = main () 34 | -------------------------------------------------------------------------------- /example/script/perl/selftest/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Prepare and install a perl module 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | LIBRARY= Selftest.pm 13 | PERLPACKAGE= org::lang::Parser 14 | 15 | USES+= perl:5 16 | 17 | .include "perl.lib.mk" 18 | 19 | ### End of file `Makefile' 20 | -------------------------------------------------------------------------------- /example/script/perl/selftest/Selftest.3pm: -------------------------------------------------------------------------------- 1 | .\" Selftest.3 -- A self-testing library 2 | .\" 3 | .\" BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | .\" This file is part of BSD Owl Scripts 5 | .\" 6 | .\" Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | .\" 8 | .\" This file must be used under the terms of the BSD license. 9 | .\" This source file is licensed as described in the file LICENSE, which 10 | .\" you should have received as part of this distribution. 11 | .\" 12 | .Dd November 21, 2014 13 | .Dt SELFTEST.PM 3 14 | .Os 15 | .Sh NAME 16 | .Nm Selftest.pm 17 | .Nd functions used by system perl scripts 18 | .Sh SYNOPSIS 19 | .Bl -item -compact 20 | .It 21 | .Ic use\& Pa Selftest 22 | .Pp 23 | .It 24 | .Ic selftest(); 25 | .It 26 | .El 27 | .Sh DESCRIPTION 28 | The 29 | .Nm 30 | module defines a single function testing for the existence of the 31 | file holding the module source code. 32 | .Sh HISTORY 33 | The 34 | .Nm 35 | module appeared as a demonstration perl module for bsdowl. 36 | .Sh AUTHORS 37 | .An -nosplit 38 | This heat generating 39 | .Nm 40 | perl module was written by 41 | .An Michael Gr\(:unewald Aq michipili@gmail.com . 42 | -------------------------------------------------------------------------------- /example/script/perl/selftest/Selftest.pm: -------------------------------------------------------------------------------- 1 | ### Selftest.pm -- Test for our own presence 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | package Selftest; 13 | 14 | use strict; 15 | use warnings; 16 | 17 | BEGIN { 18 | require Exporter; 19 | 20 | # set the version for version checking 21 | our $VERSION = 1.00; 22 | 23 | # Inherit from Exporter to export functions and variables 24 | our @ISA = qw(Exporter); 25 | 26 | # Functions and variables which are exported by default 27 | our @EXPORT = qw(selftest); 28 | 29 | # Functions and variables which can be optionally exported 30 | our @EXPORT_OK = qw(); 31 | } 32 | 33 | sub selftest { 34 | exit 0; 35 | } 36 | 37 | return 1; 38 | 39 | ### End of file `Selftest.pm' 40 | -------------------------------------------------------------------------------- /example/script/perl/showconfig/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Prepare and install a perl program 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | PROGRAM= showconfig.pl 13 | 14 | .include "perl.prog.mk" 15 | 16 | ### End of file `Makefile' 17 | -------------------------------------------------------------------------------- /example/script/perl/showconfig/showconfig.1: -------------------------------------------------------------------------------- 1 | .\" showconfig.1 -- Show self-configuration 2 | .\" 3 | .\" BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | .\" This file is part of BSD Owl Scripts 5 | .\" 6 | .\" Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | .\" 8 | .\" This file must be used under the terms of the BSD license. 9 | .\" This source file is licensed as described in the file LICENSE, which 10 | .\" you should have received as part of this distribution. 11 | .\" 12 | .Dd November 21, 2014 13 | .Dt SHOWCONFIG 1 14 | .Os 15 | .Sh NAME 16 | .Nm showconfig 17 | .Nd Show self-configuration 18 | .Sh SYNOPSIS 19 | .Nm 20 | .Sh DESCRIPTION 21 | The 22 | .Nm 23 | program prints its configuration, that is, the directory variables it 24 | uses and their values. 25 | .Sh SEE ALSO 26 | The 27 | .Em GNU coding standards, last updated September 13, 2013. 28 | .Sh HISTORY 29 | The 30 | .Nm 31 | program appeared as a demonstration shell script for bsdowl. 32 | .Sh AUTHORS 33 | .An -nosplit 34 | This heat generating 35 | .Nm 36 | library was written by 37 | .An Michael Gr\(:unewald Aq michipili@gmail.com . 38 | -------------------------------------------------------------------------------- /example/script/python/funniest/funniest/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A simple Python module 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Nov 22 11:11:04 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | LIBRARY= funniest 16 | APIVERSION= 0 17 | APIREVISION= 1 18 | LIBVERSION= ${APIVERSION}.${APIREVISION} 19 | 20 | USES+= python:2.7 21 | USES+= setuptools 22 | 23 | .include "python.lib.mk" 24 | 25 | ### End of file `Makefile' 26 | -------------------------------------------------------------------------------- /example/script/python/funniest/funniest/__init__.py: -------------------------------------------------------------------------------- 1 | def joke(): 2 | return (u'Wenn ist das Nunst\u00fcck git und Slotermeyer? Ja! ... ' 3 | u'Beiherhund das Oder die Flipperwaldt gersput.') 4 | -------------------------------------------------------------------------------- /example/script/python/funniest/setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup 2 | 3 | setup(name='funniest', 4 | version='0.1', 5 | description='The funniest joke in the world', 6 | url='http://github.com/storborg/funniest', 7 | author='Flying Circus', 8 | author_email='flyingcircus@example.com', 9 | license='MIT', 10 | packages=['funniest'], 11 | zip_safe=False) 12 | -------------------------------------------------------------------------------- /example/script/python/showconfig/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Simple Python Program 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 21 15:29:36 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PROGRAM= showconfig.py 16 | 17 | .include "python.prog.mk" 18 | 19 | ### End of file `Makefile' 20 | -------------------------------------------------------------------------------- /example/script/python/showconfig/showconfig.1: -------------------------------------------------------------------------------- 1 | .\" showconfig.1 -- Show self-configuration 2 | .\" 3 | .\" Author: Michael Grünewald 4 | .\" Date: Fri Nov 21 21:07:11 CET 2014 5 | .\" 6 | .\" BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | .\" This file is part of BSD Owl Scripts 8 | .\" 9 | .\" Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | .\" 11 | .\" This file must be used under the terms of the BSD license. 12 | .\" This source file is licensed as described in the file LICENSE, which 13 | .\" you should have received as part of this distribution. 14 | .\" 15 | .Dd November 21, 2014 16 | .Dt SHOWCONFIG 1 17 | .Os 18 | .Sh NAME 19 | .Nm showconfig 20 | .Nd Show self-configuration 21 | .Sh SYNOPSIS 22 | .Nm 23 | .Sh DESCRIPTION 24 | The 25 | .Nm 26 | program prints its configuration, that is, the directory variables it 27 | uses and their values. 28 | .Sh SEE ALSO 29 | The 30 | .Em GNU coding standards, last updated September 13, 2013. 31 | .Sh HISTORY 32 | The 33 | .Nm 34 | program appeared as a demonstration shell script for bsdowl. 35 | .Sh AUTHORS 36 | .An -nosplit 37 | This heat generating 38 | .Nm 39 | library was written by 40 | .An Michael Gr\(:unewald Aq michipili@gmail.com . 41 | -------------------------------------------------------------------------------- /example/script/shell/selftest/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Prepare and install a shell library 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 21 15:39:08 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | LIBRARY= libselftest.subr 16 | 17 | .include "shell.lib.mk" 18 | 19 | ### End of file `Makefile' 20 | -------------------------------------------------------------------------------- /example/script/shell/selftest/libselftest.3: -------------------------------------------------------------------------------- 1 | .\" libselftest.3 -- A self-testing library 2 | .\" 3 | .\" Author: Michael Grünewald 4 | .\" Date: Fri Nov 21 22:54:14 CET 2014 5 | .\" 6 | .\" BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | .\" This file is part of BSD Owl Scripts 8 | .\" 9 | .\" Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | .\" 11 | .\" This file must be used under the terms of the BSD license. 12 | .\" This source file is licensed as described in the file LICENSE, which 13 | .\" you should have received as part of this distribution. 14 | .\" 15 | .Dd November 21, 2014 16 | .Dt LIBSELFTEST.SUBR 3 17 | .Os 18 | .Sh NAME 19 | .Nm libselftest.subr 20 | .Nd functions used by system shell scripts 21 | .Sh SYNOPSIS 22 | .Bl -item -compact 23 | .It 24 | .Ic .\& Pa @SUBRDIR@/libselftest.subr 25 | .Pp 26 | .It 27 | .Ic selftest 28 | .It 29 | .El 30 | .Sh DESCRIPTION 31 | The 32 | .Nm 33 | library defines a single function testing for the existence of the 34 | file being read. 35 | .Sh HISTORY 36 | The 37 | .Nm 38 | library appeared as a demonstration shell script for bsdowl. 39 | .Sh AUTHORS 40 | .An -nosplit 41 | This heat generating 42 | .Nm 43 | library was written by 44 | .An Michael Gr\(:unewald Aq michipili@gmail.com . 45 | -------------------------------------------------------------------------------- /example/script/shell/selftest/libselftest.subr: -------------------------------------------------------------------------------- 1 | ### libselftest.subr -- Test for our own presence 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 21 22:52:36 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | : ${libselftestdir:?} 16 | 17 | selftest() 18 | { 19 | [ -f "${libselftestdir}/libselftest.subr" ] 20 | } 21 | 22 | ### End of file `libselftest.subr' 23 | -------------------------------------------------------------------------------- /example/script/shell/showconfig/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Prepare and install a shell program 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 21 15:38:50 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PROGRAM= showconfig.sh 16 | 17 | .include "shell.prog.mk" 18 | 19 | ### End of file `Makefile' 20 | -------------------------------------------------------------------------------- /example/script/shell/showconfig/showconfig.1: -------------------------------------------------------------------------------- 1 | .\" showconfig.1 -- Show self-configuration 2 | .\" 3 | .\" Author: Michael Grünewald 4 | .\" Date: Fri Nov 21 21:07:11 CET 2014 5 | .\" 6 | .\" BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | .\" This file is part of BSD Owl Scripts 8 | .\" 9 | .\" Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | .\" 11 | .\" This file must be used under the terms of the BSD license. 12 | .\" This source file is licensed as described in the file LICENSE, which 13 | .\" you should have received as part of this distribution. 14 | .\" 15 | .Dd November 21, 2014 16 | .Dt SHOWCONFIG 1 17 | .Os 18 | .Sh NAME 19 | .Nm showconfig 20 | .Nd Show self-configuration 21 | .Sh SYNOPSIS 22 | .Nm 23 | .Sh DESCRIPTION 24 | The 25 | .Nm 26 | program prints its configuration, that is, the directory variables it 27 | uses and their values. 28 | .Sh SEE ALSO 29 | The 30 | .Em GNU coding standards, last updated September 13, 2013. 31 | .Sh HISTORY 32 | The 33 | .Nm 34 | program appeared as a demonstration shell script for bsdowl. 35 | .Sh AUTHORS 36 | .An -nosplit 37 | This heat generating 38 | .Nm 39 | library was written by 40 | .An Michael Gr\(:unewald Aq michipili@gmail.com . 41 | -------------------------------------------------------------------------------- /example/texmf/bibtex/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Test bibtex support 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Nov 27 09:34:30 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= galley.tex 16 | USES+= bibtex 17 | 18 | .include "latex.doc.mk" 19 | 20 | ### End of file `Makefile' 21 | -------------------------------------------------------------------------------- /example/texmf/bibtex/galley.tex: -------------------------------------------------------------------------------- 1 | %%% galley.tex -- A LaTeX document using bibtex 2 | 3 | % Author: Michael Grünewald 4 | % Date: Thu Nov 27 09:35:52 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \documentclass{amsbook} 16 | \begin{document} 17 | A {\LaTeX} document using {bib\TeX} and using a reference to the 18 | \emph{\TeX book}~\cite{TEXBOOK}. 19 | \backmatter 20 | \bibliographystyle{plain} 21 | \bibliography{references} 22 | \end{document} 23 | 24 | %%% End of file `galley.tex' 25 | -------------------------------------------------------------------------------- /example/texmf/bibtex/references.bib: -------------------------------------------------------------------------------- 1 | %%% references.bib -- A short bibliographic database 2 | 3 | % Author: Michael Grünewald 4 | % Date: Thu Nov 27 10:11:37 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | @book {TEXBOOK, 16 | AUTHOR = {Knuth, Donald E.}, 17 | TITLE = {The {\TeX book}}, 18 | PUBLISHER = {Addison-Wesley}, 19 | YEAR = {1984} 20 | } 21 | 22 | %%% End of file `references.bib' 23 | -------------------------------------------------------------------------------- /example/texmf/complex/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Complex document using LaTeX 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 22:53:22 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PAKCAGE= complex 16 | VERSION= 1.0 17 | OFFICER= michipili@gmail.com 18 | 19 | SUBDIR= chapter1 20 | SUBDIR+= chapter2 21 | SUBDIR+= main 22 | 23 | .include "generic.project.mk" 24 | 25 | ### End of file `Makefile' 26 | -------------------------------------------------------------------------------- /example/texmf/complex/chapter1/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Produce the chapter 1 of our complex document 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 22:51:12 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= galley 16 | 17 | SRCS= galley.tex 18 | SRCS+= preamble.tex 19 | SRCS+= chapter1.tex 20 | 21 | TEXINPUTS= ${SRCDIR}/macro 22 | 23 | .include "latex.doc.mk" 24 | 25 | ### End of file `Makefile' 26 | -------------------------------------------------------------------------------- /example/texmf/complex/chapter1/chapter1.tex: -------------------------------------------------------------------------------- 1 | %%% chapter1.tex -- Chapter One 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 22:11:49 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \chapter{Chapter One} 16 | This is the first chapter of our demonstration text. 17 | 18 | %%% End of file `chapter1.tex' 19 | -------------------------------------------------------------------------------- /example/texmf/complex/chapter1/galley.tex: -------------------------------------------------------------------------------- 1 | %%% galley.tex -- Galley for the Chapter One 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 22:12:27 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \documentclass{amsbook} 16 | \input{preamble} 17 | \begin{document} 18 | \input{chapter1} 19 | \end{document} 20 | 21 | %%% End of file `galley.tex' 22 | -------------------------------------------------------------------------------- /example/texmf/complex/chapter2/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Produce the chapter 2 of our complex document 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 22:24:32 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= galley 16 | 17 | SRCS= galley.tex 18 | SRCS+= preamble.tex 19 | SRCS+= chapter2.tex 20 | SRCS+= square.mp 21 | SRCS+= table.tex 22 | 23 | TEXINPUTS= ${SRCDIR}/macro 24 | 25 | table.tex: table.d 26 | ${AWK} -f ${.CURDIR}/maketable.awk < ${.ALLSRC} > ${.TARGET}\ 27 | || (${RM} ${.TARGET}; exit 1) 28 | 29 | REALCLEANFILES+= table.tex 30 | 31 | .include "latex.doc.mk" 32 | 33 | ### End of file `Makefile' 34 | -------------------------------------------------------------------------------- /example/texmf/complex/chapter2/chapter2.tex: -------------------------------------------------------------------------------- 1 | %%% chapter2.tex -- Chapter Two 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 22:14:29 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \chapter{Chapter Two} 16 | This is the second chapter of our demonstration text. It features an 17 | externally prepared table based on a book by Beck/Bertholle/Child 18 | cited in the \emph{\TeX book}: 19 | 20 | 21 | \begin{tabular}{rcccl} 22 | \input{table} 23 | \end{tabular} 24 | 25 | It also features a beautiful square drawn with Metapost: 26 | 27 | \begin{center} 28 | \includegraphics{square-1} 29 | \end{center} 30 | 31 | %%% End of file `chapter2.tex' 32 | -------------------------------------------------------------------------------- /example/texmf/complex/chapter2/galley.tex: -------------------------------------------------------------------------------- 1 | %%% galley.tex -- Galley for the Chapter Two 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 22:13:58 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \documentclass{amsbook} 16 | \input{preamble} 17 | \begin{document} 18 | \input{chapter2} 19 | \end{document} 20 | 21 | %%% End of file `galley.tex' 22 | -------------------------------------------------------------------------------- /example/texmf/complex/chapter2/maketable.awk: -------------------------------------------------------------------------------- 1 | ### maketable.awk -- Prepare the poultry table 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 22:36:46 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | BEGIN { 16 | FS="|" 17 | } 18 | 19 | NR <= 2 { 20 | printf("\\textsl{%s}&\\textsl{%s}&\\textsl{%s}&\\textsl{%s}&\\textsl{%s}\\\\", $1, $2, $3, $4, $5); 21 | } 22 | 23 | NR > 2 { 24 | printf("\\textbf{%s}&%s&%s&%s&%s\\\\\n", $1, $2, $3, $4, $5); 25 | } 26 | 27 | ### End of file `maketable.awk' 28 | -------------------------------------------------------------------------------- /example/texmf/complex/chapter2/square.mp: -------------------------------------------------------------------------------- 1 | %%% square.mp -- An illustration for a TeX document 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 18:20:05 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | beginfig(1) 16 | u := 4cm; 17 | draw ((0,0) -- (0,u) -- (u,u) -- (u,0) -- cycle) 18 | rotated 45; 19 | endfig; 20 | bye; 21 | 22 | %%% End of file `square.mp' 23 | -------------------------------------------------------------------------------- /example/texmf/complex/chapter2/table.d: -------------------------------------------------------------------------------- 1 | American|French|Age|Weight|Cooking 2 | Chicken|Connection|(months)|(lbs.)|Methods 3 | Squab|Poussin|2|$\frac34$ to 1|Broil, Grill, Roast 4 | Broiler|Poulet Nouveau|2 to 3|1$\frac12$ to 2$\frac12$|Broil, Grill, Roast 5 | Fryer|Poulet Reine|3 to 5|2 to 3|Fry, Sauté, Roast 6 | Roaster|Poularde|5$\frac12$ to 9|Over 3|Roast, Poach, Fricassee 7 | Fowl|Poule de l'Année|10 to 12|Over 3|Stew, Fricassee 8 | Rooster|Coq|Over 12|Over 3|Soup stock, Forcemeat 9 | -------------------------------------------------------------------------------- /example/texmf/complex/macro/preamble.tex: -------------------------------------------------------------------------------- 1 | %%% preamble.tex -- Preamble 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 22:15:01 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \usepackage{amsmath} 16 | \usepackage{amssymb} 17 | \usepackage{amsthm} 18 | \usepackage{graphicx} 19 | \usepackage{mathpazo} 20 | \usepackage[T1]{fontenc} 21 | \usepackage[utf8]{inputenc} 22 | 23 | %%% End of file `preamble.tex' 24 | -------------------------------------------------------------------------------- /example/texmf/complex/main/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Produce our complex document 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 22:24:05 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= complex 16 | 17 | SRCS= complex.tex 18 | SRCS+= preamble.tex 19 | SRCS+= chapter1.tex 20 | SRCS+= chapter2.tex 21 | 22 | TEXINPUTS= ${SRCDIR}/macro 23 | TEXINPUTS+= ${SRCDIR}/chapter1 24 | TEXINPUTS+= ${SRCDIR}/chapter2 25 | TEXINPUTS+= ${WRKDIR}/chapter2 26 | 27 | .include "latex.doc.mk" 28 | 29 | ### End of file `Makefile' 30 | -------------------------------------------------------------------------------- /example/texmf/complex/main/complex.tex: -------------------------------------------------------------------------------- 1 | %%% complex.tex -- A complex document 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 22:18:07 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \documentclass{amsbook} 16 | \input{preamble} 17 | \title{An example of a complex document} 18 | \author{A. U. Thor} 19 | \begin{document} 20 | \input{chapter1} 21 | \input{chapter2} 22 | \end{document} 23 | 24 | %%% End of file `complex.tex' 25 | -------------------------------------------------------------------------------- /example/texmf/draft/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Test draft support 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Nov 27 22:24:57 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= galley.tex 16 | USES+= draft:git 17 | 18 | .if !defined(TEXDRAFTSTAMP) 19 | TEXDRAFTSTAMP_CMD= git log -1 --pretty=tformat:'%ai %h' | tr ' ' '_' 20 | TEXDRAFTSTAMP!= (cd ${.CURDIR} && ${TEXDRAFTSTAMP_CMD}) 21 | .endif 22 | 23 | .include "latex.doc.mk" 24 | 25 | ### End of file `Makefile' 26 | -------------------------------------------------------------------------------- /example/texmf/draft/galley.tex: -------------------------------------------------------------------------------- 1 | %%% galley.tex -- A simple LaTeX document 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 16:20:55 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \documentclass{article} 16 | \begin{document} 17 | A simple {\LaTeX} document. 18 | \end{document} 19 | 20 | %%% End of file `galley.tex' 21 | -------------------------------------------------------------------------------- /example/texmf/graphicx/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Document with figures using LaTeX 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 17:58:17 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= illustrated 16 | 17 | SRCS= illustrated.tex 18 | SRCS+= square.mp 19 | 20 | .include "latex.doc.mk" 21 | 22 | ### End of file `Makefile' 23 | -------------------------------------------------------------------------------- /example/texmf/graphicx/illustrated.tex: -------------------------------------------------------------------------------- 1 | %%% illustrated.tex -- An illustrated LaTeX document 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 18:01:57 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \documentclass{article} 16 | \usepackage{graphicx} 17 | \begin{document} 18 | An illustrated {\LaTeX} document, displaying a berautiful square. 19 | \begin{center} 20 | \includegraphics{square-1} 21 | \end{center} 22 | \end{document} 23 | 24 | %%% End of file `illustrated.tex' 25 | -------------------------------------------------------------------------------- /example/texmf/graphicx/square.mp: -------------------------------------------------------------------------------- 1 | %%% square.mp -- An illustration for a TeX document 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 18:20:05 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | beginfig(1) 16 | u := 4cm; 17 | draw ((0,0) -- (0,u) -- (u,u) -- (u,0) -- cycle) 18 | rotated 45; 19 | endfig; 20 | bye; 21 | 22 | %%% End of file `square.mp' 23 | -------------------------------------------------------------------------------- /example/texmf/index/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Test index support 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Nov 27 12:27:35 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= galley.tex 16 | USES+= index 17 | 18 | .include "latex.doc.mk" 19 | 20 | ### End of file `Makefile' 21 | -------------------------------------------------------------------------------- /example/texmf/index/galley.tex: -------------------------------------------------------------------------------- 1 | %%% galley.tex -- A LaTeX document using an index 2 | 3 | % Author: Michael Grünewald 4 | % Date: Thu Nov 27 12:27:28 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \documentclass{amsbook} 16 | \makeindex 17 | \begin{document} 18 | A {\LaTeX} document\index{document} using {bib\TeX} and using an 19 | index\index{index}. 20 | \backmatter 21 | \printindex 22 | \end{document} 23 | 24 | %%% End of file `galley.tex' 25 | -------------------------------------------------------------------------------- /example/texmf/latex/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Simple document using LaTeX 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 16:20:06 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= simple 16 | 17 | .include "latex.doc.mk" 18 | 19 | ### End of file `Makefile' 20 | -------------------------------------------------------------------------------- /example/texmf/latex/simple.tex: -------------------------------------------------------------------------------- 1 | %%% simple.tex -- A simple LaTeX document 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 16:20:55 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \documentclass{article} 16 | \begin{document} 17 | A simple {\LaTeX} document. 18 | \end{document} 19 | 20 | %%% End of file `simple.tex' 21 | -------------------------------------------------------------------------------- /example/texmf/metapost/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Figures using Metapost 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 19:18:11 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= square.mp 16 | DOCUMENT+= texlabel.mp 17 | 18 | .include "mpost.doc.mk" 19 | 20 | ### End of file `Makefile' 21 | -------------------------------------------------------------------------------- /example/texmf/metapost/square.mp: -------------------------------------------------------------------------------- 1 | %%% square.mp -- An illustration for a TeX document 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 18:20:05 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | beginfig(1) 16 | u := 4cm; 17 | draw ((0,0) -- (0,u) -- (u,u) -- (u,0) -- cycle) 18 | rotated 45; 19 | endfig; 20 | bye; 21 | 22 | %%% End of file `square.mp' 23 | -------------------------------------------------------------------------------- /example/texmf/metapost/texlabel.mp: -------------------------------------------------------------------------------- 1 | %%% texlabel.mp -- An illustration with TeX labels 2 | 3 | % Author: Michael Grünewald 4 | % Date: Wed Dec 3 07:58:42 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | beginfig(1) 16 | u := 4cm; 17 | draw ((0,0) -- (0,u) -- (u,u) -- (u,0) -- cycle) 18 | rotated 45; 19 | dotlabel.top(btex $O$ etex, (0,0)); 20 | endfig; 21 | bye; 22 | 23 | %%% End of file `texlabel.mp' 24 | -------------------------------------------------------------------------------- /example/texmf/noweb/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Test noweb support with LaTeX 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 28 10:05:39 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | # IMPORTANT. This example is useful because it shows how to develop 16 | # LaTeX packages with noweband bsdowl. The LaTeX macros it produces 17 | # are, however, not maintained. any more. 18 | 19 | PACKAGE= samhain 20 | VERSION= 1.0 21 | OFFICER= michipili@gmail.com 22 | 23 | SUBDIR= class 24 | SUBDIR+= example 25 | SUBDIR+= manual 26 | 27 | .include "generic.project.mk" 28 | 29 | ### End of file `Makefile' 30 | -------------------------------------------------------------------------------- /example/texmf/noweb/Makefile.inc: -------------------------------------------------------------------------------- 1 | ### Makefile.inc -- Configuration for samhain project 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 28 10:07:22 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEXDEVICE= pdf dvi ps 16 | .PATH: ${SRCDIR}/src 17 | 18 | FILESDIR= ${datarootdir}/texmf-local/tex/latex${PACKAGEDIR} 19 | DOCDIR= ${datarootdir}/texmf-local/doc/latex${PACKAGEDIR} 20 | 21 | ### End of file `Makefile.inc' 22 | -------------------------------------------------------------------------------- /example/texmf/noweb/class/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Prepare Samhain LaTeX classes 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 28 10:17:37 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | FILES= shltx.sty 16 | FILES+= shthm.sty 17 | FILES+= sharticle.cls 18 | FILES+= shplexos.cls 19 | FILES+= shbook.cls 20 | FILES+= shpaper.cls 21 | FILES+= shmetal.sty 22 | 23 | NOWEB= shltxbegin.nw 24 | NOWEB+= shltx.nw 25 | NOWEB+= shclasses.nw 26 | NOWEB+= shmetal.nw 27 | NOWEB+= shpaper.nw 28 | NOWEB+= shplexos.nw 29 | NOWEB+= shthm.nw 30 | NOWEB+= shltxend.nw 31 | 32 | NOTANGLE= ${FILES} 33 | 34 | USES+= noweb 35 | 36 | .include "latex.files.mk" 37 | 38 | ### End of file `Makefile' 39 | -------------------------------------------------------------------------------- /example/texmf/noweb/example/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Prepare an example with Samhain LaTeX 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 28 10:41:12 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= sampleart.tex 16 | TEXINPUTS= ${WRKDIR}/class 17 | 18 | .include "latex.doc.mk" 19 | 20 | ### End of file `Makefile' 21 | -------------------------------------------------------------------------------- /example/texmf/noweb/example/sampleart.tex: -------------------------------------------------------------------------------- 1 | %%% sampleart.tex -- A sample article 2 | 3 | % Author: Michaël Grünewald 4 | % Date: Fri Nov 28 11:45:53 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \documentclass{sharticle} 16 | \title{Exemple de document} 17 | \author{A. U. Thor} 18 | \begin{document} 19 | \maketitle 20 | \section{Première section} 21 | \[ 22 | \begin{bmatrix} 23 | 1 & 0 & 0 \\ 24 | 0 & 1 & 0 \\ 25 | 0 & 0 & 1 \\ 26 | \end{bmatrix} 27 | \] 28 | \begin{pageinsert} 29 | \caption{Titre bla bla} 30 | Bla bla 31 | \end{pageinsert} 32 | \section{Deuxième section} 33 | \section{Troisième section} 34 | \end{document} 35 | 36 | %%% End of file `sampleart.tex' 37 | -------------------------------------------------------------------------------- /example/texmf/noweb/manual/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Prepare manual for Samhain LaTeX 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 28 11:19:47 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= shusermanual 16 | 17 | NOWEB= shltxbegin.nw 18 | NOWEB+= shltx.nw 19 | NOWEB+= shclasses.nw 20 | NOWEB+= shmetal.nw 21 | NOWEB+= shpaper.nw 22 | NOWEB+= shplexos.nw 23 | NOWEB+= shthm.nw 24 | NOWEB+= shltxend.nw 25 | 26 | NOWEAVE= ${DOCUMENT} 27 | SRCS= shusermanual.tex 28 | 29 | USES+= noweb 30 | NOWEAVE_LATEX_WRAPPER= delay 31 | NOWEAVE_LATEX_DEFS= l2h.in 32 | 33 | .include "latex.doc.mk" 34 | 35 | ### End of file `Makefile' 36 | -------------------------------------------------------------------------------- /example/texmf/noweb/manual/l2h.in: -------------------------------------------------------------------------------- 1 | % l2h substitution th þ 2 | % l2h argblock paragraph h4 3 | % l2h argblock subparagraph h5 4 | % l2h argblock fn em 5 | % l2h argblock va var 6 | % l2h argblock fa car 7 | % l2h argblock pa em 8 | % l2h envblock example pre 9 | -------------------------------------------------------------------------------- /example/texmf/noweb/src/shltxbegin.nw: -------------------------------------------------------------------------------- 1 | % -*- mode: Noweb; noweb-code-mode: latex -*- 2 | 3 | % Author: Michaël Grünewald 4 | % Date: Sat Sep 20 13:31:09 CEST 2009 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \documentclass{article} 16 | \usepackage[utf8]{inputenc} 17 | \usepackage[T1]{fontenc} 18 | \usepackage{pxfonts} 19 | \input{nwlatex} 20 | \usepackage{noweb} 21 | \pagestyle{noweb} 22 | \noweboptions{longchunks,smallcode} 23 | \title{Macros Samhain pour \LaTeX} 24 | \author{Michaël Le Barbier\\\texttt{michipili@gmail.com}} 25 | \begin{document} 26 | \maketitle 27 | \tableofcontents 28 | @ 29 | -------------------------------------------------------------------------------- /example/texmf/noweb/src/shltxend.nw: -------------------------------------------------------------------------------- 1 | % Author: Michaël Grünewald 2 | % Date: Sat Sep 20 13:40:01 CEST 2009 3 | 4 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 5 | % This file is part of BSD Owl Scripts 6 | % 7 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 8 | % 9 | % This file must be used under the terms of the BSD license. 10 | % This source file is licensed as described in the file LICENSE, which 11 | % you should have received as part of this distribution. 12 | 13 | \end{document} 14 | -------------------------------------------------------------------------------- /example/texmf/tex/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Simple document using plain TeX 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 16:11:13 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | DOCUMENT= simple 16 | 17 | .include "tex.doc.mk" 18 | 19 | ### End of file `Makefile' 20 | -------------------------------------------------------------------------------- /example/texmf/tex/simple.tex: -------------------------------------------------------------------------------- 1 | %%% simple.tex -- A simple plain TeX document 2 | 3 | % Author: Michael Grünewald 4 | % Date: Sun Nov 23 16:12:05 CET 2014 5 | 6 | % BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | % This file is part of BSD Owl Scripts 8 | % 9 | % Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | % 11 | % This file must be used under the terms of the BSD license. 12 | % This source file is licensed as described in the file LICENSE, which 13 | % you should have received as part of this distribution. 14 | 15 | \centerline{\bf A simple document for plain TeX}\bye 16 | 17 | %%% End of file `simple.tex' 18 | -------------------------------------------------------------------------------- /example/www/.gitignore: -------------------------------------------------------------------------------- 1 | generation/generation.html 2 | guidelines/guidelines.html 3 | index/index.html 4 | ocaml/ocaml.html 5 | tex/tex.html 6 | writing/writing.html 7 | wwwobj/ 8 | -------------------------------------------------------------------------------- /example/www/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A simple static website 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | PACKAGE= static 13 | VERSION= 0.0.1-current 14 | OFFICER?= michipili@gmail.com 15 | 16 | MODULE= scroll:index 17 | MODULE+= scroll:tex 18 | MODULE+= scroll:ocaml 19 | MODULE+= scroll:writing 20 | MODULE+= scroll:generation 21 | MODULE+= scroll:guidelines 22 | MODULE+= scroll:style 23 | 24 | # 25 | # Prepare a local copy to browse 26 | # 27 | 28 | USE_SWITCH_CREDENTIALS= no 29 | WWWROOTDIR?= ${.CURDIR}/_build 30 | CLEANDIRS+= ${WWWROOTDIR} 31 | 32 | .export WWWROOTDIR 33 | .export USE_SWITCH_CREDENTIALS 34 | 35 | .include "generic.project.mk" 36 | 37 | ### End of file `Makefile' 38 | -------------------------------------------------------------------------------- /example/www/Mk/scroll.mk: -------------------------------------------------------------------------------- 1 | ### scroll.mk -- A simple static website 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | WWWMAIN?= main.sgml 13 | 14 | SRCS= main.sgml 15 | SRCS+= head-css-global.sgml 16 | SRCS+= more-news.sgml 17 | SRCS+= copyright-statement.sgml 18 | 19 | DIRS= ${SRCDIR}/style 20 | DIRS+= ${SRCDIR}/sgml 21 | DIRS+= ${SRCDIR}/Template 22 | 23 | SCROLL_INCLUDE= head-css-local 24 | SCROLL_INCLUDE+= more-news 25 | SCROLL_INCLUDE+= more-ilink 26 | SCROLL_INCLUDE+= more-elink 27 | SCROLL_INCLUDE+= more-download 28 | 29 | .for include in ${SCROLL_INCLUDE} 30 | .if !empty(SRCS:M${include}.sgml) 31 | SGML_INCLUDE+= with.${include} 32 | .endif 33 | .endfor 34 | 35 | .include "www.sgml.mk" 36 | 37 | ### End of file `scroll.mk` 38 | -------------------------------------------------------------------------------- /example/www/Template/Makefile: -------------------------------------------------------------------------------- 1 | WWW = index.html 2 | WWWDIR = ${WWWBASE} 3 | 4 | INCLUDE = with.news 5 | INCLUDE+= with.ilink 6 | INCLUDE+= with.elink 7 | 8 | 9 | SRCS = index.sgml 10 | SRCS+= head-title.sgml 11 | SRCS+= head-css.sgml 12 | SRCS+= page-title.sgml 13 | SRCS+= page-content.sgml 14 | SRCS+= more-news.sgml 15 | SRCS+= more-ilink.sgml 16 | SRCS+= more-elink.sgml 17 | 18 | .include "scroll.mk" 19 | -------------------------------------------------------------------------------- /example/www/Template/head-css.sgml: -------------------------------------------------------------------------------- 1 | 6 | 8 | 10 | -------------------------------------------------------------------------------- /example/www/Template/head-title.sgml: -------------------------------------------------------------------------------- 1 | 6 | Lorem Ipsum 7 | -------------------------------------------------------------------------------- /example/www/Template/more-elink.sgml: -------------------------------------------------------------------------------- 1 | 6 |
Liens externes
7 | 18 | -------------------------------------------------------------------------------- /example/www/Template/more-ilink.sgml: -------------------------------------------------------------------------------- 1 | 6 |
Liens sur cette page
7 |
8 | 18 |
19 | -------------------------------------------------------------------------------- /example/www/Template/more-news.sgml: -------------------------------------------------------------------------------- 1 | 6 |
Late breaking news
7 |
Aliquam vel enim consequat sem aliquet 8 | hendrerit. Vivamus neque velit, ornare vitae, tempor vel, ultrices et, 9 | wisi. Donec dictum. Suspendisse leo ipsum, rutrum cursus, malesuada 10 | id, dapibus sed, urna. Praesent lacus. Sed nec risus ac risus 11 | fermentum vestibulum. Duis egestas, ipsum sit amet molestie tincidunt, 12 | ligula libero pretium risus, non faucibus tellus felis mattis 13 | sapien. Nulla ut mauris. Nam iaculis blandit purus. Pellentesque 14 | elementum pharetra ligula.
15 | -------------------------------------------------------------------------------- /example/www/Template/page-footer.sgml: -------------------------------------------------------------------------------- 1 | 6 | Lorem Ipsum --- 9 mai 2008 7 | -------------------------------------------------------------------------------- /example/www/Template/page-header.sgml: -------------------------------------------------------------------------------- 1 | 6 | Lorem Ipsum --- 9 mai 2008 7 | -------------------------------------------------------------------------------- /example/www/Template/page-title.sgml: -------------------------------------------------------------------------------- 1 | 6 |

Lorem Ipsum

7 |

Mauris eu quam eget nulla fermentum 8 | adipiscing. Nulla ut mauris. Donec dictum. Sed consequat, leo pretium 9 | sagittis congue, ante nunc laoreet nisl, ac aliquam risus tellus 10 | commodo elit. Morbi ut odio vitae eros luctus luctus. Cum sociis 11 | natoque penatibus et magnis dis parturient montes, nascetur ridiculus 12 | mus. Nulla placerat porta justo. Nullam malesuada dapibus 13 | orci. Mauris eu quam eget nulla fermentum adipiscing. Ut posuere 14 | laoreet pede. Curabitur et lectus in tellus egestas 15 | hendrerit. Curabitur adipiscing, mauris non dictum aliquam, arcu risus 16 | dapibus diam, nec sollicitudin quam erat quis ligula.

17 |

This example is copyright (c) 2008 Michael 18 | Grünewald.

19 | -------------------------------------------------------------------------------- /example/www/generation/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A simple static website 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | WWW= generation.html 13 | WWWDIR= ${WWWROOTDIR} 14 | 15 | SRCS+= head-title.sgml 16 | SRCS+= page-title.sgml 17 | SRCS+= page-content.sgml 18 | SRCS+= more-ilink.sgml 19 | SRCS+= more-elink.sgml 20 | SRCS+= more-download.sgml 21 | 22 | .include "scroll.mk" 23 | 24 | ### End of file `Makefile' 25 | -------------------------------------------------------------------------------- /example/www/generation/head-title.sgml: -------------------------------------------------------------------------------- 1 | 7 | Code generation 8 | -------------------------------------------------------------------------------- /example/www/generation/page-content.sgml: -------------------------------------------------------------------------------- 1 | 7 |

Using NOWEB to write TeX or LaTeX macros

8 | 9 |

Norman Ramsey's NOWEB literate 11 | programming tool can be used to write TeX or LaTeX macros.

12 | 13 |

The Makefile

14 | 15 |

The Makefile must declare several variables:

16 |
    17 |
  • NOWEB enumerates your NOWEB files;
  • 18 |
  • NOTANGLE enumerates the code files that need to be 19 | generated from the NOWEB files;
  • 20 |
  • NOWEAVE
  • 21 |
22 | -------------------------------------------------------------------------------- /example/www/generation/page-title.sgml: -------------------------------------------------------------------------------- 1 | 7 |

Code generation

8 |

BSD Owl Scripts supports the generation 9 | of source files with Norman Ramsey's NOWEB literate programming tool. 10 | For now, this functionality is restricted to the preparation of TeX or 11 | LaTeX macros.

12 | -------------------------------------------------------------------------------- /example/www/guidelines/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A simple static website 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | WWW= guidelines.html 13 | WWWDIR= ${WWWROOTDIR} 14 | 15 | SRCS+= head-title.sgml 16 | SRCS+= page-title.sgml 17 | SRCS+= page-content.sgml 18 | SRCS+= more-ilink.sgml 19 | SRCS+= more-elink.sgml 20 | SRCS+= more-download.sgml 21 | 22 | .include "scroll.mk" 23 | 24 | ### End of file `scroll.mk' 25 | -------------------------------------------------------------------------------- /example/www/guidelines/head-title.sgml: -------------------------------------------------------------------------------- 1 | 7 | Interface guidelines 8 | -------------------------------------------------------------------------------- /example/www/guidelines/page-content.sgml: -------------------------------------------------------------------------------- 1 | 7 |

Yet to be written.

8 | -------------------------------------------------------------------------------- /example/www/guidelines/page-title.sgml: -------------------------------------------------------------------------------- 1 | 7 |

Interface guidelines

8 |

Yet to be written.

9 | -------------------------------------------------------------------------------- /example/www/index/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A simple static website 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | WWW= index.html 13 | WWWDIR= ${WWWROOTDIR} 14 | 15 | SRCS+= head-title.sgml 16 | SRCS+= page-title.sgml 17 | SRCS+= page-content.sgml 18 | SRCS+= more-ilink.sgml 19 | SRCS+= more-elink.sgml 20 | SRCS+= more-download.sgml 21 | SRCS+= head-css-local.sgml 22 | 23 | .include "scroll.mk" 24 | 25 | ### End of file `Makefile' 26 | -------------------------------------------------------------------------------- /example/www/index/head-css-local.sgml: -------------------------------------------------------------------------------- 1 | 6 | 23 | -------------------------------------------------------------------------------- /example/www/index/head-title.sgml: -------------------------------------------------------------------------------- 1 | 7 | BSD Owl Scripts 8 | -------------------------------------------------------------------------------- /example/www/index/page-title.sgml: -------------------------------------------------------------------------------- 1 | 7 |

BSD Owl Scripts

8 |

BSD Owl Scripts is a group of BSD Make template files. They 9 | are written mich in the spirit of FreeBSD's Make template files, with 10 | portability in mind: they can also be used on GNU/Linux systems, Mac 11 | OS X and Sun Solaris. Currently available scripts may be used for 12 | OCaml projects and (La)TeX documents or macros.

13 | 14 |

15 | Latest release is &bps-current-version; 16 | — 17 | get tarball 20 | — 21 | browse source code 22 |

23 | -------------------------------------------------------------------------------- /example/www/ocaml/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A simple static website 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | WWW= ocaml.html 13 | WWWDIR= ${WWWROOTDIR} 14 | 15 | SRCS+= head-title.sgml 16 | SRCS+= page-title.sgml 17 | SRCS+= page-content.sgml 18 | SRCS+= more-ilink.sgml 19 | SRCS+= more-elink.sgml 20 | SRCS+= more-download.sgml 21 | 22 | .include "scroll.mk" 23 | 24 | ### End of file `Makefile' 25 | -------------------------------------------------------------------------------- /example/www/ocaml/head-title.sgml: -------------------------------------------------------------------------------- 1 | 7 | Producing and deploying OCaml software 8 | -------------------------------------------------------------------------------- /example/www/ocaml/page-content.sgml: -------------------------------------------------------------------------------- 1 | 7 |

Yet to be written

8 | -------------------------------------------------------------------------------- /example/www/ocaml/page-title.sgml: -------------------------------------------------------------------------------- 1 | 7 |

Producing and deploying OCaml software

8 |

We describe services given by BSD Owl 9 | Scritps in the production and deployment of OCaml software.

10 | -------------------------------------------------------------------------------- /example/www/sgml/copyright-statement.sgml: -------------------------------------------------------------------------------- 1 | 6 | This document is copyright 7 | (c) 2008, 2009, 2010, 2011 8 | Michael Grünewald. 9 | BSD Owl Scripts is copyright 10 | (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 11 | Michael Grünewald, 12 | it is released under the terms 13 | of the BSD Licence (see LICENSE in the sources). 14 | -------------------------------------------------------------------------------- /example/www/sgml/head-css-global.sgml: -------------------------------------------------------------------------------- 1 | 6 | 8 | 10 | 12 | -------------------------------------------------------------------------------- /example/www/sgml/more-download.sgml: -------------------------------------------------------------------------------- 1 | 6 |
Download
7 |
8 | 13 |
14 | -------------------------------------------------------------------------------- /example/www/sgml/more-elink.sgml: -------------------------------------------------------------------------------- 1 | 6 |
On the WWW
7 |
8 | 20 |
21 | -------------------------------------------------------------------------------- /example/www/sgml/more-ilink.sgml: -------------------------------------------------------------------------------- 1 | 6 |
Sections
7 | 17 | -------------------------------------------------------------------------------- /example/www/sgml/more-news.sgml: -------------------------------------------------------------------------------- 1 | 6 |
Latest News
7 |
8 |
    9 |
  • 2011-04-28 release-1.4
  • 10 |
  • 2011-04-08 releng-1.4-bp
  • 11 |
  • 2010-08-01 release-1.3
  • 12 |
13 |
14 | -------------------------------------------------------------------------------- /example/www/sgml/page-footer.sgml: -------------------------------------------------------------------------------- 1 | 6 | $Date$ 7 | -------------------------------------------------------------------------------- /example/www/sgml/page-header.sgml: -------------------------------------------------------------------------------- 1 | 6 | $Date$ 7 | -------------------------------------------------------------------------------- /example/www/style/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A simple static website 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | WWW+= modern.css 13 | WWW+= modern_sz.css 14 | 15 | WWW+= classic.css 16 | WWW+= classic_sz.css 17 | 18 | WWW+= trendy.css 19 | 20 | WWW+= content.css 21 | WWW+= more.css 22 | WWW+= title.css 23 | WWW+= layout.css 24 | WWW+= scroll_layout.css 25 | 26 | WWWDIR= ${WWWROOTDIR}/style 27 | 28 | .include "www.files.mk" 29 | 30 | ### End of file `Makefile' 31 | -------------------------------------------------------------------------------- /example/www/style/classic_sz.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Palatino,Adobe Palatino,URW Palladio,URW Palladio L,Palladio,Bitstream Vera Serif,Times,Georgia,serif; 3 | font-size: 11pt; 4 | } 5 | -------------------------------------------------------------------------------- /example/www/style/layout.css: -------------------------------------------------------------------------------- 1 | @import url("scroll_layout.css"); 2 | -------------------------------------------------------------------------------- /example/www/style/modern_sz.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Lucida Grande,Lucida Sans Unicode,Arial,Verdana,Bitstream Vera Sans,sans-serif,sans; 3 | font-size: 11pt; 4 | } 5 | -------------------------------------------------------------------------------- /example/www/style/more.css: -------------------------------------------------------------------------------- 1 | div#MORE .link_local, 2 | div#MORE .link_external, 3 | div#MORE .news, 4 | div#MORE .action { 5 | font-size: 80%; 6 | } 7 | -------------------------------------------------------------------------------- /example/www/style/title.css: -------------------------------------------------------------------------------- 1 | /* title.css -- Présentation dans la zone de titre */ 2 | div#TITLE p#HEADLINE { 3 | font-size: 170%; 4 | } 5 | 6 | div#TITLE p#INTRODUCTION { 7 | text-align: justify; 8 | } 9 | 10 | div#TITLE p#INTRODUCTION:lang(en):before, 11 | div#TITLE p#INTRODUCTION:lang(fr):before, 12 | div#TITLE p#INTRODUCTION:before { 13 | content: "Introduction : "; 14 | font-weight: bold; 15 | } 16 | -------------------------------------------------------------------------------- /example/www/tex/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A simple static website 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | WWW= tex.html 13 | WWWDIR= ${WWWROOTDIR} 14 | 15 | SRCS+= head-title.sgml 16 | SRCS+= page-title.sgml 17 | SRCS+= page-content.sgml 18 | SRCS+= more-ilink.sgml 19 | SRCS+= more-elink.sgml 20 | SRCS+= more-download.sgml 21 | 22 | .include "scroll.mk" 23 | 24 | ### End of file `Makefile' 25 | -------------------------------------------------------------------------------- /example/www/tex/head-title.sgml: -------------------------------------------------------------------------------- 1 | 7 | Producing TeX and LaTeX documents 8 | -------------------------------------------------------------------------------- /example/www/tex/page-title.sgml: -------------------------------------------------------------------------------- 1 | 7 |

Producing TeX and LaTeX documents

8 |

The BSD Owl Scripts may be used to ease the 9 | production of TeX and LaTeX documents. As the TeX toolchain functions 10 | mostly like a compiler toolchain, TeX document production falls in the 11 | predilection domain of Make.

12 | -------------------------------------------------------------------------------- /example/www/writing/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- A simple static website 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | WWW= writing.html 13 | WWWDIR= ${WWWROOTDIR} 14 | 15 | SRCS+= head-title.sgml 16 | SRCS+= page-title.sgml 17 | SRCS+= page-content.sgml 18 | SRCS+= more-ilink.sgml 19 | SRCS+= more-elink.sgml 20 | SRCS+= more-download.sgml 21 | 22 | .include "scroll.mk" 23 | 24 | ### End of file `Makefile' 25 | -------------------------------------------------------------------------------- /example/www/writing/head-title.sgml: -------------------------------------------------------------------------------- 1 | 7 | BSD Owl Scripts 8 | -------------------------------------------------------------------------------- /example/www/writing/page-title.sgml: -------------------------------------------------------------------------------- 1 | 7 |

BSD Owl Scripts

8 |

BSD Owl Scripts is a small group of BSD 9 | Make directive files. Modules are written in the spirit of FreeBSD's 10 | project files. 11 | 12 | Currently available scripts may be used for OCaml projects and (La)TeX 13 | documents.

14 | -------------------------------------------------------------------------------- /langc/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Developement of applications with C 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 7 08:53:47 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | SHARE= langc.init.mk 16 | SHARE+= langc.build.mk 17 | SHARE+= langc.uses.mk 18 | SHARE+= langc.module.mk 19 | SHARE+= langc.external.mk 20 | SHARE+= langc.depend.mk 21 | SHARE+= langc.prog.mk 22 | SHARE+= langc.lib.mk 23 | 24 | .include "generic.files.mk" 25 | 26 | ### End of file `Makefile' 27 | -------------------------------------------------------------------------------- /langc/langc.depend.mk: -------------------------------------------------------------------------------- 1 | ### langc.depend.mk -- Automatic generation of dependencies 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 7 16:15:56 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | 16 | ### SYNOPSIS 17 | 18 | ### DESCRIPTION 19 | 20 | 21 | .if !defined(THISMODULE) 22 | .error langc.depend.mk cannot be included directly. 23 | .endif 24 | 25 | .if !target(____) 26 | ____: 27 | 28 | MKDEPCMD?= ${CC} -MM 29 | 30 | .for source in ${_LANGC_SRCS} 31 | .depend: ${${source}} 32 | .endfor 33 | 34 | MKDEPTOOL= ${MKDEPCMD} 35 | .if defined(CFLAGS)&&!empty(CFLAGS:M-I*) 36 | MKDEPTOOL+= ${CFLAGS:S@-I @-I@gW:M-I*:S@-I@-I @g} 37 | .endif 38 | 39 | .depend: 40 | ${MKDEPTOOL} ${.ALLSRC} > ${.TARGET} 41 | 42 | do-depend: .depend 43 | 44 | DISTCLEANFILES+= .depend 45 | 46 | .endif # !target(____) 47 | 48 | ### End of file `langc.depend.mk' 49 | -------------------------------------------------------------------------------- /langc/langc.external.mk: -------------------------------------------------------------------------------- 1 | ### langc.external.mk -- Use external resources 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 7 14:58:35 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | 16 | ### SYNOPSIS 17 | 18 | ### DESCRIPTION 19 | 20 | .if !defined(THISMODULE) 21 | .error langc.external.mk cannot be included directly. 22 | .endif 23 | 24 | .if !target(____) 25 | ____: 26 | 27 | .endif # !target(____) 28 | 29 | ### End of file `langc.external.mk' 30 | -------------------------------------------------------------------------------- /langc/langc.init.mk: -------------------------------------------------------------------------------- 1 | ### langc.init.mk -- Common initialisation for C modules 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 7 09:06:28 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | 16 | ### SYNOPSIS 17 | 18 | ### DESCRIPTION 19 | 20 | .if !defined(THISMODULE) 21 | .error langc.init.mk cannot be included directly. 22 | .endif 23 | 24 | .if !target(____) 25 | ____: 26 | 27 | .SUFFIXES: .c .o .h .a .so .l .y 28 | .SUFFIXES: .s 29 | 30 | # 31 | # Archive manager 32 | # 33 | 34 | AR?= ar 35 | ARFLAGS?= -cru 36 | MKSHAREDLIB?= ${CC} -shared -Wl,-undefined -Wl,dynamic_lookup 37 | 38 | AS?= as 39 | 40 | .include "bps.init.mk" 41 | .include "langc.uses.mk" 42 | .include "langc.module.mk" 43 | .include "langc.external.mk" 44 | 45 | .endif # !target(____) 46 | 47 | ### End of file `langc.init.mk' 48 | -------------------------------------------------------------------------------- /misc/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Miscellaneous modules 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Jul 7 18:09:47 CEST 2007 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | SHARE= elisp.lib.mk 16 | SHARE+= generic.files.mk 17 | SHARE+= generic.subdir.mk 18 | SHARE+= generic.project.mk 19 | SHARE+= generic.test.mk 20 | 21 | .include "generic.files.mk" 22 | 23 | ### End of file `Makefile' 24 | -------------------------------------------------------------------------------- /misc/generic.subdir.mk: -------------------------------------------------------------------------------- 1 | ### generic.subdir.mk -- Generic aggregate 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Dec 4 23:47:57 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | _MAKE_ALLSUBTARGET?= 16 | 17 | .include "bps.init.mk" 18 | .include "bps.credentials.mk" 19 | .include "bps.subdir.mk" 20 | .include "bps.clean.mk" 21 | 22 | _SUBDIR_TARGET?= obj depend build doc install clean distclean realclean test 23 | 24 | obj: do-obj-subdir 25 | 26 | .unexport SRCDIR 27 | .unexport WRKDIR 28 | .unexport PACKAGE 29 | .unexport PACKAGEDIR 30 | .unexport VERSION 31 | .unexport OFFICER 32 | .unexport MODULE 33 | .unexport EXTERNAL 34 | 35 | ### End of file `generic.subdir.mk' 36 | -------------------------------------------------------------------------------- /noweb/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Support files for noweb 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Oct 3 19:09:28 CEST 2009 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | SHARE+= nwlatex.css 16 | FILES+= nwlatex.tex 17 | 18 | FILESDIR= ${datarootdir}/texmf-local/tex/latex${PACKAGEDIR} 19 | 20 | .include "generic.files.mk" 21 | 22 | ### End of file `Makefile' 23 | -------------------------------------------------------------------------------- /noweb/nwlatex.css: -------------------------------------------------------------------------------- 1 | /* nwlatex.css -- CSS for NOWEB output 2 | * 3 | * BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | * This file is part of BSD Owl Scripts 5 | * 6 | * Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | * 8 | * This file must be used under the terms of the BSD license. 9 | * This source file is licensed as described in the file LICENSE, which 10 | * you should have received as part of this distribution. 11 | */ 12 | html { 13 | font-family: Palatino, Garamond, Times New Roman, Serif; 14 | } 15 | 16 | div#tableofcontents { 17 | border: solid black 1px; 18 | background-color: #CCCCFF; 19 | } 20 | 21 | a { 22 | text-decoration: none; 23 | } 24 | 25 | a:hover { 26 | background-color: #CCCCFF; 27 | } 28 | 29 | p { 30 | text-align: justify; 31 | } 32 | 33 | h4, h5, h6 { 34 | display: inline; 35 | margin-right: 3ex; 36 | } 37 | 38 | h5 { 39 | font-size: 100%; 40 | font-weight: normal; 41 | font-style: italic; 42 | } 43 | -------------------------------------------------------------------------------- /opam/files/remove.sh: -------------------------------------------------------------------------------- 1 | # Usage: remove PREFIX 2 | # Remove BSD Owl Scripts 3 | find "$1/share/bsdowl" "$1/bin" -type f \ 4 | | xargs grep -l 'This file is part of BSD Owl Scripts' \ 5 | | xargs rm -v -f 6 | -------------------------------------------------------------------------------- /opam/opam: -------------------------------------------------------------------------------- 1 | opam-version: "1.2" 2 | version: "3.0.0-current" 3 | maintainer: "michipili@gmail.com" 4 | authors: "Michael Grünewald" 5 | license: "BSD" 6 | homepage: "https://github.com/michipili/bsdowl" 7 | bug-reports: "https://github.com/michipili/bsdowl/issues" 8 | dev-repo: "https://github.com/michipili/bsdowl.git" 9 | tags: [ 10 | "bsd" 11 | "bmake" 12 | "build" 13 | ] 14 | build: [ 15 | ["./configure" "--prefix" prefix] 16 | ["bmake" "-r" "build"] {os != "freebsd"} 17 | ["make" "-r" "build"] {os = "freebsd"} 18 | ] 19 | install: [ 20 | ["bmake" "install"] {os != "freebsd"} 21 | ["make" "install"] {os = "freebsd"} 22 | ] 23 | remove: [ 24 | ["sh" "%{build}%/opam/files/remove.sh" prefix] 25 | ] 26 | depends: ["ocamlfind"] 27 | depexts: [ 28 | [["debian"] ["bmake"]] 29 | [["ubuntu"] ["bmake"]] 30 | [["osx" "macports"] ["bmake"]] 31 | ] 32 | -------------------------------------------------------------------------------- /script/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Install script programs and libraries 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Nov 20 14:11:44 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | SHARE= script.main.mk 16 | SHARE+= shell.prog.mk 17 | SHARE+= shell.lib.mk 18 | SHARE+= perl.prog.mk 19 | SHARE+= perl.uses.mk 20 | SHARE+= perl.init.mk 21 | SHARE+= perl.lib.mk 22 | SHARE+= python.prog.mk 23 | SHARE+= python.lib.mk 24 | SHARE+= python.init.mk 25 | SHARE+= python.uses.mk 26 | SHARE+= python.setuptools.mk 27 | 28 | .include "generic.files.mk" 29 | 30 | ### End of file `Makefile' 31 | -------------------------------------------------------------------------------- /script/perl.init.mk: -------------------------------------------------------------------------------- 1 | ### perl.init.mk -- Initialisation for Perl support 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | .if !defined(THISMODULE) 13 | .error perl.init.mk cannot be included directly. 14 | .endif 15 | 16 | .if !target(____) 17 | ____: 18 | 19 | .if defined(PERLPACKAGE) 20 | PERLPACKAGEDIR?= ${PERLPACKAGE:C@::@/@g:C@^@/@} 21 | .else 22 | PERLPACKAGEDIR?= 23 | .endif 24 | 25 | MANSECTIONS?= 3pm 8pm 26 | 27 | .include "bps.init.mk" 28 | .include "perl.uses.mk" 29 | 30 | PERLVERSION?= 5 31 | PERLLIBDIR?= ${PREFIX}/lib/perl${PERLVERSION}${PERLPACKAGEDIR} 32 | 33 | .endif # !target(____) 34 | 35 | ### End of file `perl.init.mk' 36 | -------------------------------------------------------------------------------- /script/perl.uses.mk: -------------------------------------------------------------------------------- 1 | ### perl.uses.mk -- Options for Perl scripts 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | 13 | .if !defined(THISMODULE) 14 | .error perl.uses.mk cannot be included directly. 15 | .endif 16 | 17 | .if !target(____) 18 | ____: 19 | 20 | .if!empty(_USES_perl_ARGS:M[0-9]*) 21 | PERLVERSION= ${_USES_perl_ARGS:M[0-9]*} 22 | .endif 23 | 24 | .endif # !target(____) 25 | 26 | ### End of file `perl.uses.mk' 27 | -------------------------------------------------------------------------------- /script/python.init.mk: -------------------------------------------------------------------------------- 1 | ### python.init.mk -- Initialisation for Python support 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Nov 22 12:52:58 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | .if !defined(THISMODULE) 16 | .error python.init.mk cannot be included directly. 17 | .endif 18 | 19 | .if !target(____) 20 | ____: 21 | 22 | .include "bps.init.mk" 23 | .include "python.uses.mk" 24 | 25 | .if defined(PYTHONVERSION) 26 | PYTHONLIBDIR?= ${PREFIX}/lib/python${PYTHONVERSION}/site-packages${PACKAGEDIR} 27 | .else 28 | .error The variable PYTHONVERSION is not set. 29 | .endif 30 | 31 | .endif # !target(____) 32 | 33 | ### End of file `python.init.mk' 34 | -------------------------------------------------------------------------------- /script/python.uses.mk: -------------------------------------------------------------------------------- 1 | ### python.uses.mk -- Options for Python scripts 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Nov 22 12:52:43 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | 16 | .if !defined(THISMODULE) 17 | .error python.uses.mk cannot be included directly. 18 | .endif 19 | 20 | .if !target(____) 21 | ____: 22 | 23 | .if!empty(_USES_python_ARGS:M[0-9].[0-9]) 24 | PYTHONVERSION= ${_USES_python_ARGS:M[0-9].[0-9]} 25 | .endif 26 | 27 | .endif # !target(____) 28 | 29 | ### End of file `python.uses.mk' 30 | -------------------------------------------------------------------------------- /support/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Support scripts for BSD Owl Scripts 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Mai 9 14:47:47 CEST 2008 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | PROGRAM= mp2png.sh 16 | 17 | .include "shell.prog.mk" 18 | 19 | ### End of file `Makefile' 20 | -------------------------------------------------------------------------------- /testsuite/.gitignore: -------------------------------------------------------------------------------- 1 | .depend 2 | .product 3 | *.cm[xioa] 4 | *.cmxa 5 | *.done 6 | Makefile.inc 7 | -------------------------------------------------------------------------------- /testsuite/bsdmake/AssertMakeOS.mk: -------------------------------------------------------------------------------- 1 | ### AssertMakeOS.mk -- Test for the .MAKE.OS variable 2 | 3 | # Author: Michael Grünewald 4 | # Date: Tue Dec 2 22:33:59 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | .include "bsdowl.assert.mk" 16 | 17 | .if(!defined(.MAKE.OS)||empty(.MAKE.OS))\ 18 | &&(!defined(unix)||empty(unix)) 19 | .if !defined(.MAKE.OS)||empty(.MAKE.OS) 20 | .warning .MAKE.OS: Undefined variable. 21 | .endif 22 | .if !defined(unix)||empty(unix) 23 | .warning unix: Undefined variable. 24 | .endif 25 | .error Unknown UNIX variant. 26 | .endif 27 | 28 | ### End of file `AssertMakeOS.mk' 29 | -------------------------------------------------------------------------------- /testsuite/bsdmake/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Test portability issues for BSD Make 2 | 3 | # Author: Michael Grünewald 4 | # Date: Tue Dec 2 22:31:53 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST= AssertMakeOS 16 | TEST+= AssertOneWord 17 | 18 | TEST_SEQUENCE?= all 19 | 20 | .include "bsdowl.test.mk" 21 | 22 | ### End of file `Makefile' 23 | -------------------------------------------------------------------------------- /testsuite/config/TestDotfile.mk: -------------------------------------------------------------------------------- 1 | ### TestDotfile.mk -- Test support for dotfiles 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 15:51:24 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= User configuration files 16 | TEST_SOURCEDIR= example/config/dotfile 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | test: 20 | test -f ${DESTDIR}${HOME}/.cshrc 21 | test -f ${DESTDIR}${HOME}/.Xresources 22 | 23 | ### End of file `TestDotfile.mk' 24 | -------------------------------------------------------------------------------- /testsuite/langc/TestProgram.mk: -------------------------------------------------------------------------------- 1 | ### TestProgram.mk -- The obnoxious hello world program 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 7 10:16:01 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple C program 16 | TEST_SOURCEDIR= example/langc/hello_world 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | TEST_MATRIX= PROFILE DEBUG 20 | TEST_PROFILE= yes no 21 | TEST_DEBUG= yes no 22 | 23 | .if !empty(PROFILE:Myes) 24 | USES+= profile 25 | .endif 26 | 27 | .if !empty(DEBUG:Myes) 28 | USES+= debug 29 | .endif 30 | 31 | test: 32 | test -x ${DESTDIR}${BINDIR}/hello_world 33 | test -f ${DESTDIR}${MANDIR}/man1/hello_world.1.gz 34 | 35 | ### End of file `TestProgram.mk' 36 | -------------------------------------------------------------------------------- /testsuite/langc/TestProgramAssembly.mk: -------------------------------------------------------------------------------- 1 | ### TestProgramAssembly.mk -- The obnoxious hello world program 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Nov 20 11:56:52 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple C program linked with an assembly module 16 | TEST_SOURCEDIR= example/langc/hello_assembly 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | test: 20 | test -x ${DESTDIR}${BINDIR}/hello_world 21 | test -f ${DESTDIR}${MANDIR}/man1/hello_world.1.gz 22 | 23 | ### End of file `TestProgramAssembly.mk' 24 | -------------------------------------------------------------------------------- /testsuite/langc/TestProgramAutoconf.mk: -------------------------------------------------------------------------------- 1 | ### TestProgramAutoconf.mk -- The obnoxious hello world program 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | TEST_DESCRIPTION= Simple C program configured with GNU autoconf 13 | TEST_SOURCEDIR= example/langc/hello_autoconf 14 | TEST_SEQUENCE= preparatives all install 15 | 16 | CONFIGURE_ARGS= ${TEST_CONFIGURE_ARGS} 17 | 18 | test: 19 | test -f ${.CURDIR}/configure 20 | test -f ${.CURDIR}/config.status 21 | test -x ${DESTDIR}${BINDIR}/hello_world 22 | test -f ${DESTDIR}${MANDIR}/man1/hello_world.1.gz 23 | 24 | ### End of file `TestProgramAutoconf.mk' 25 | -------------------------------------------------------------------------------- /testsuite/misc/TestElisp.mk: -------------------------------------------------------------------------------- 1 | ### Elisp.mk -- Test Elisp Macros 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2016 Michael Grünewald 7 | # 8 | # This file must be used under the terms of the CeCILL-B. 9 | # This source file is licensed as described in the file COPYING, which 10 | # you should have received as part of this distribution. The terms 11 | # are also available at 12 | # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt 13 | 14 | TEST_DESCRIPTION= Elisp macros 15 | TEST_SOURCEDIR= example/elisp 16 | 17 | .if "${WITH_TESTSUITE_EMACS}" == "yes" 18 | TEST_SEQUENCE= preparatives all install 19 | .else 20 | TEST_SEQUENCE= IGNORE 21 | .endif 22 | 23 | test: 24 | test -f ${DESTDIR}${datarootdir}/emacs/site-lisp/emake1.el 25 | test -f ${DESTDIR}${datarootdir}/emacs/site-lisp/emake2.el 26 | test -f ${DESTDIR}${datarootdir}/emacs/site-lisp/emake1.elc 27 | test -f ${DESTDIR}${datarootdir}/emacs/site-lisp/emake2.elc 28 | 29 | ### End of file `TestElisp.mk' 30 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_depends/TestExternalDependency.mk: -------------------------------------------------------------------------------- 1 | ### TestExternalDependency.mk -- Validate external dependencies 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | TEST_DESCRIPTION= External dependencies in an OCaml project 13 | TEST_SOURCEDIR= example/ocaml/heat 14 | 15 | .if "${WITH_TESTSUITE_FINDLIB}" == "yes" 16 | TEST_SEQUENCE= preparatives depend 17 | .else 18 | TEST_SEQUENCE= IGNORE 19 | .endif 20 | 21 | TEST_MATRIX= COMPILE 22 | TEST_COMPILE= both native_code byte_code 23 | 24 | USES+= compile:${COMPILE} 25 | 26 | test: 27 | grep -q 'num[.]cmi' ${WRKDIR}/fibonacci/.depend 28 | 29 | ### End of file `TestExternalDependency.mk' 30 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_library/TestLibrary.mk: -------------------------------------------------------------------------------- 1 | ### TestLibrary.mk -- Produce a simple library 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Nov 29 14:47:24 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | 16 | TEST_DESCRIPTION= Simple OCaml library 17 | TEST_SOURCEDIR= example/ocaml/newton 18 | TEST_SEQUENCE= preparatives all install 19 | 20 | TEST_MATRIX= WITH_DEBUG WITH_PROFILE COMPILE 21 | TEST_WITH_DEBUG= yes no 22 | TEST_WITH_PROFILE= yes no 23 | TEST_COMPILE= both native_code byte_code 24 | 25 | USES+= compile:${COMPILE} 26 | 27 | test: 28 | test -f ${DESTDIR}${LIBDIR}/newton.cmi 29 | .if !empty(COMPILE:Mboth)||!empty(COMPILE:Mbyte_code) 30 | test -f ${DESTDIR}${LIBDIR}/newton.cma 31 | .endif 32 | .if !empty(COMPILE:Mboth)||!empty(COMPILE:Mnative_code) 33 | test -f ${DESTDIR}${LIBDIR}/newton.a 34 | test -f ${DESTDIR}${LIBDIR}/newton.cmxa 35 | .endif 36 | 37 | ### End of file `TestLibrary.mk' 38 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_library/TestLibraryDoc.mk: -------------------------------------------------------------------------------- 1 | ### TestLibraryDoc.mk -- Produce a simple library with ocamldoc documentation 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Nov 29 14:47:24 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple OCaml library using ocamldoc 16 | TEST_SOURCEDIR= example/ocaml/newton 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | USES+= ocamldoc:odoc,html 20 | 21 | test: 22 | test -f ${DESTDIR}${LIBDIR}/newton.cma 23 | test -f ${DESTDIR}${LIBDIR}/newton.cmi 24 | test -f ${DESTDIR}${DOCDIR}/html/index.html 25 | test -f ${.OBJDIR}/newton.odoc 26 | 27 | ### End of file `TestLibraryDoc.mk' 28 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_library/TestLibraryDynlink.mk: -------------------------------------------------------------------------------- 1 | ### TestLibraryDynlink.mk -- Produce a simple library and install with findlib 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 30 12:18:24 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple OCaml dynlink plugin 16 | TEST_SOURCEDIR= example/ocaml/newton 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | USES+= dynlink 20 | 21 | COMPILE= native 22 | 23 | test: 24 | test -f ${DESTDIR}${LIBDIR}/newton.cmxa 25 | test -f ${DESTDIR}${LIBDIR}/newton.cmxs 26 | test -f ${DESTDIR}${LIBDIR}/newton.cmi 27 | 28 | ### End of file `TestLibraryDynlink.mk' 29 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_library/TestLibraryFindlib.mk: -------------------------------------------------------------------------------- 1 | ### TestLibraryFindlib.mk -- Produce a simple library and install with findlib 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 30 12:18:24 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple OCaml library with findlib meta data 16 | TEST_SOURCEDIR= example/ocaml/newton-meta 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | USES+= site-lib 20 | 21 | test: 22 | test -f ${DESTDIR}${LIBDIR}/newton.cma 23 | test -f ${DESTDIR}${LIBDIR}/newton.cmi 24 | test -f ${DESTDIR}${LIBDIR}/META 25 | 26 | ### End of file `TestLibraryFindlib.mk' 27 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_library/TestPack.mk: -------------------------------------------------------------------------------- 1 | ### TestPack.mk -- Produce a packed library 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Nov 29 08:06:59 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple OCaml packed library 16 | TEST_SOURCEDIR= example/ocaml/newton-pack 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | test: 20 | test -f ${DESTDIR}${LIBDIR}/newtonlib.cma 21 | test -f ${DESTDIR}${LIBDIR}/newtonlib.cmi 22 | 23 | ### End of file `TestPack.mk' 24 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_program/.gitignore: -------------------------------------------------------------------------------- 1 | wordcount 2 | wordcount.1.gz 3 | wordcount.byte 4 | wordcount.native 5 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_program/TestProgram.mk: -------------------------------------------------------------------------------- 1 | ### TestProgram.mk -- Counting characters and lines in a file 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Oct 3 22:42:23 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple OCaml program 16 | TEST_SOURCEDIR= example/ocaml/wordcount 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | TEST_MATRIX= WITH_DEBUG WITH_PROFILE COMPILE 20 | TEST_WITH_DEBUG= yes no 21 | TEST_WITH_PROFILE= yes no 22 | TEST_COMPILE= both native_code byte_code 23 | 24 | USES+= compile:${COMPILE} 25 | 26 | test: 27 | test -x ${DESTDIR}${BINDIR}/wordcount 28 | test -f ${DESTDIR}${MANDIR}/man1/wordcount.1.gz 29 | 30 | ### End of file `TestProgram.mk' 31 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_program/TestProgramExternalFindlib.mk: -------------------------------------------------------------------------------- 1 | ### TestProgramExternalFindlib.mk -- Test findlib 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Oct 3 22:42:23 CEST 2013 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple OCaml program linking a findlib library 16 | TEST_SOURCEDIR= example/ocaml/rolling_stone 17 | 18 | .if "${WITH_TESTSUITE_FINDLIB}" == "yes" 19 | TEST_SEQUENCE= preparatives all install 20 | .else 21 | TEST_SEQUENCE= IGNORE 22 | .endif 23 | 24 | test: 25 | test -x ${DESTDIR}${BINDIR}/rolling_stone 26 | 27 | ### End of file `TestProgramExternalFindlib.mk' 28 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_program/TestProgramExternalOCaml.mk: -------------------------------------------------------------------------------- 1 | ### TestProgramExternalOCaml.mk -- How does it feel? 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Jan 9 09:06:51 CET 2015 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple OCaml program linking an arbitrary library 16 | TEST_SOURCEDIR= example/ocaml/rolling_stone 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | EXTERNAL= ocaml.lib:unix 20 | 21 | _EXTERNAL_ocaml.lib_unix_DIR= ${ocamllibdir}/ocaml 22 | _EXTERNAL_ocaml.lib_unix_BYTE= unix.cma 23 | _EXTERNAL_ocaml.lib_unix_NATIVE=unix.cmxa 24 | 25 | test: 26 | test -x ${DESTDIR}${BINDIR}/rolling_stone 27 | 28 | ### End of file `TestProgramExternalOCaml.mk' 29 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_program/TestProgramLexerParser.mk: -------------------------------------------------------------------------------- 1 | ### TestProgramLexerParser.mk -- Counting characters and lines in a file 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Nov 29 08:21:58 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= OCaml lexers and parsers with ocamllex and ocamlyacc 16 | TEST_SOURCEDIR= example/ocaml/minibasic 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | test: 20 | test -x ${DESTDIR}${BINDIR}/minibasic 21 | 22 | ### End of file `TestProgramLexerParser.mk' 23 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_toplevel/TestToplevel.mk: -------------------------------------------------------------------------------- 1 | ### TestToplevel.mk -- Prepare an OCaml toplevel 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Dec 28 18:15:21 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Modified OCaml toplevel 16 | TEST_SOURCEDIR= example/ocaml/customtop 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | test: 20 | test -x ${DESTDIR}${BINDIR}/custom_toplevel 21 | 22 | ### End of file `TestToplevel.mk' 23 | -------------------------------------------------------------------------------- /testsuite/ocaml/test_toplevel/TestToplevelCustom.mk: -------------------------------------------------------------------------------- 1 | ### TestToplevelCustom.mk -- Prepare an OCaml custom toplevel 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Jan 3 16:18:30 CET 2015 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Modified OCaml toplevel with custom C stubs 16 | TEST_SOURCEDIR= example/ocaml/greetingtop 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | test: 20 | test -x ${DESTDIR}${BINDIR}/custom_toplevel 21 | 22 | ### End of file `TestToplevel.mk' 23 | -------------------------------------------------------------------------------- /testsuite/script/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Test Suite for scripts 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 21 21:54:07 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | 16 | SUBDIR= test_shell 17 | SUBDIR+= test_python 18 | 19 | .include "generic.subdir.mk" 20 | 21 | ### End of file `Makefile' 22 | -------------------------------------------------------------------------------- /testsuite/script/test_perl/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Test for Perl programs, modules and extensions 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 21 15:28:45 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | 16 | ### SYNOPSIS 17 | 18 | ### DESCRIPTION 19 | 20 | .if !target(____) 21 | ____: 22 | 23 | .endif # !target(____) 24 | 25 | ### End of file `Makefile' 26 | -------------------------------------------------------------------------------- /testsuite/script/test_perl/TestPerlModule.mk: -------------------------------------------------------------------------------- 1 | ### TestPerlModule.mk -- Prepare a simple Perl module 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 21 15:20:46 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | 16 | ### SYNOPSIS 17 | 18 | ### DESCRIPTION 19 | 20 | TEST_DESCRIPTION= Simple perl module 21 | TEST_SOURCEDIR= example/script/perl/selftest 22 | TEST_SEQUENCE= preparatives all install 23 | 24 | PERLLIBDIR= ${LIBDIR}/perl5 25 | PERLTEST='\ 26 | use Selftest;\ 27 | selftest;\ 28 | ' 29 | 30 | test: 31 | test -f ${DESTDIR}${PERLLIBDIR}/Selftest.pm 32 | test -f ${DESTDIR}${MANDIR}/man3p/Selftest.3pm.gz 33 | perl -I ${DESTDIR}${PERLLIBDIR} -e ${PERLTEST} 34 | 35 | ### End of file `TestPerlModule.mk' 36 | -------------------------------------------------------------------------------- /testsuite/script/test_perl/TestPerlProgram.mk: -------------------------------------------------------------------------------- 1 | ### TestPerlProgram.mk -- Prepare a simple Perl module 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 21 15:21:04 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | 16 | TEST_DESCRIPTION= Simple perl program 17 | TEST_SOURCEDIR= example/script/perl/showconfig 18 | TEST_SEQUENCE= preparatives all install 19 | 20 | test: 21 | test -x ${DESTDIR}${BINDIR}/showconfig 22 | test -f ${DESTDIR}${MANDIR}/man1/showconfig.1.gz 23 | ${DESTDIR}${BINDIR}/showconfig | grep -q ${libexecdir}/showconfig 24 | 25 | ### End of file `TestPerlProgram.mk' 26 | -------------------------------------------------------------------------------- /testsuite/script/test_python/TestLibrary.mk: -------------------------------------------------------------------------------- 1 | ### TestLibrary.mk -- Test installation of Python modules 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Nov 22 11:11:04 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Python library installed with setuptools 16 | TEST_SOURCEDIR= example/script/python/funniest 17 | 18 | .if "${WITH_TESTSUITE_PY_SETUPTOOLS}" == "yes" 19 | TEST_SEQUENCE= preparatives all install 20 | .else 21 | TEST_SEQUENCE= IGNORE 22 | .endif 23 | 24 | ### End of file `TestLibrary.mk' 25 | -------------------------------------------------------------------------------- /testsuite/script/test_python/TestProgram.mk: -------------------------------------------------------------------------------- 1 | ### TestProgram.mk -- Test a Python Program 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 21 15:29:36 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple Python program 16 | TEST_SOURCEDIR= example/script/python/showconfig 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | test: 20 | test -x ${DESTDIR}${BINDIR}/showconfig 21 | test -f ${DESTDIR}${MANDIR}/man1/showconfig.1.gz 22 | 23 | ### End of file `TestProgram.mk' 24 | -------------------------------------------------------------------------------- /testsuite/script/test_shell/TestLibrary.mk: -------------------------------------------------------------------------------- 1 | ### TestLibrary.mk -- Prepare and install a shell library 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 21 15:39:08 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple shell library 16 | TEST_SOURCEDIR= example/script/shell/selftest 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | test: 20 | test -f ${DESTDIR}${SHAREDIR}/libselftest.subr 21 | test -f ${DESTDIR}${MANDIR}/man3/libselftest.3.gz 22 | 23 | ### End of file `TestLibrary.mk' 24 | -------------------------------------------------------------------------------- /testsuite/script/test_shell/TestProgram.mk: -------------------------------------------------------------------------------- 1 | ### TestProgram.mk -- Prepare and install a shell program 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 21 15:38:50 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple shell program 16 | TEST_SOURCEDIR= example/script/shell/showconfig 17 | TEST_SEQUENCE= preparatives all install 18 | 19 | test: 20 | test -x ${DESTDIR}${BINDIR}/showconfig 21 | test -f ${DESTDIR}${MANDIR}/man1/showconfig.1.gz 22 | 23 | ### End of file `TestProgram.mk' 24 | -------------------------------------------------------------------------------- /testsuite/texmf/TestBibtex.mk: -------------------------------------------------------------------------------- 1 | ### TestBibtex.mk -- Test bibtex support 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Nov 27 09:34:30 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= LaTeX document with BibTeX generated bibliography 16 | TEST_SOURCEDIR= example/texmf/bibtex 17 | 18 | .if "${WITH_TESTSUITE_TEXMF}" == "yes" 19 | TEST_SEQUENCE= preparatives all install 20 | .else 21 | TEST_SEQUENCE= IGNORE 22 | .endif 23 | 24 | test: 25 | test -f ${DESTDIR}${DOCDIR}/galley.pdf 26 | 27 | ### End of file `TestBibtex.mk' 28 | -------------------------------------------------------------------------------- /testsuite/texmf/TestComplex.mk: -------------------------------------------------------------------------------- 1 | ### TestComplex.mk -- Complex document using LaTeX 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 22:53:22 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Complex LaTeX document with METAPOST figures 16 | TEST_SOURCEDIR= example/texmf/complex 17 | 18 | .if "${WITH_TESTSUITE_TEXMF}" == "yes" 19 | TEST_SEQUENCE= preparatives all install 20 | .else 21 | TEST_SEQUENCE= IGNORE 22 | .endif 23 | 24 | TEST_MATRIX= TEXDEVICE 25 | TEST_TEXDEVICE= dvi pdf ps 26 | 27 | test: 28 | .for mpdevice in ${TEXDEVICE:Mdvi:S/dvi/eps/} 29 | test -f ${DESTDIR}${DOCDIR}/square-1.${mpdevice} 30 | .endfor 31 | .for texdevice in ${TEXDEVICE} 32 | test -f ${DESTDIR}${DOCDIR}/complex.${texdevice} 33 | .endfor 34 | 35 | ### End of file `TestComplex.mk' 36 | -------------------------------------------------------------------------------- /testsuite/texmf/TestDraft.mk: -------------------------------------------------------------------------------- 1 | ### TestDraft.mk -- Test draft support 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Nov 27 22:24:57 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= LaTeX document with installed with draft stamp 16 | TEST_SOURCEDIR= example/texmf/draft 17 | TEST_MATRIX= TEXDRAFTSTAMP 18 | 19 | TEST_TEXDRAFTSTAMP= DRAFT 20 | 21 | .if "${WITH_TESTSUITE_TEXMF}" == "yes" 22 | TEST_SEQUENCE= preparatives all install 23 | .else 24 | TEST_SEQUENCE= IGNORE 25 | .endif 26 | 27 | test: 28 | test -f ${DESTDIR}${DOCDIR}/galley_${TEXDRAFTSTAMP}.pdf 29 | 30 | ### End of file `TestDraft.mk' 31 | -------------------------------------------------------------------------------- /testsuite/texmf/TestIndex.mk: -------------------------------------------------------------------------------- 1 | ### TestIndex.mk -- Test index support 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Nov 27 12:27:35 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= LaTeX document featuring an index 16 | TEST_SOURCEDIR= example/texmf/index 17 | 18 | .if "${WITH_TESTSUITE_TEXMF}" == "yes" 19 | TEST_SEQUENCE= preparatives all install 20 | .else 21 | TEST_SEQUENCE= IGNORE 22 | .endif 23 | 24 | test: 25 | test -f ${DESTDIR}${DOCDIR}/galley.pdf 26 | 27 | ### End of file `TestIndex.mk' 28 | -------------------------------------------------------------------------------- /testsuite/texmf/TestInteraction.mk: -------------------------------------------------------------------------------- 1 | ### TestInteraction.mk -- Test texinteraction option 2 | 3 | # Author: Michael Grünewald 4 | # Date: Thu Nov 27 08:18:18 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple plain TeX document failing on errors 16 | TEST_SOURCEDIR= example/texmf/tex 17 | 18 | .if "${WITH_TESTSUITE_TEXMF}" == "yes" 19 | TEST_SEQUENCE= preparatives all install 20 | .else 21 | TEST_SEQUENCE= IGNORE 22 | .endif 23 | 24 | USES+= texinteraction:errorstop 25 | 26 | test: 27 | test -f ${DESTDIR}${DOCDIR}/simple.pdf 28 | 29 | ### End of file `TestInteraction.mk' 30 | -------------------------------------------------------------------------------- /testsuite/texmf/TestLaTeX.mk: -------------------------------------------------------------------------------- 1 | ### TestLaTeX.mk -- Simple document using LaTeX 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 16:20:06 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple LaTeX document 16 | TEST_SOURCEDIR= example/texmf/latex 17 | 18 | .if "${WITH_TESTSUITE_TEXMF}" == "yes" 19 | TEST_SEQUENCE= preparatives all install 20 | .else 21 | TEST_SEQUENCE= IGNORE 22 | .endif 23 | 24 | TEST_MATRIX= TEXDEVICE 25 | TEST_TEXDEVICE= dvi pdf ps 26 | 27 | test: 28 | test -f ${DESTDIR}${DOCDIR}/simple.${TEXDEVICE} 29 | 30 | ### End of file `TestLaTeX.mk' 31 | -------------------------------------------------------------------------------- /testsuite/texmf/TestLaTeXGraphicx.mk: -------------------------------------------------------------------------------- 1 | ### TestLaTeXGraphicx.mk -- LaTeX document with METAPOST figures 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 17:58:30 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= LaTeX document with METAPOST figures 16 | TEST_SOURCEDIR= example/texmf/graphicx 17 | 18 | .if "${WITH_TESTSUITE_TEXMF}" == "yes" && "${WITH_TESTSUITE_METAPOST}" == "yes" 19 | TEST_SEQUENCE= preparatives all install 20 | .else 21 | TEST_SEQUENCE= IGNORE 22 | .endif 23 | 24 | TEST_MATRIX= TEXDEVICE 25 | TEST_TEXDEVICE= dvi pdf ps 26 | 27 | test: 28 | .for mpdevice in ${TEXDEVICE:Mdvi:S/dvi/eps/} 29 | test -f ${DESTDIR}${DOCDIR}/square-1.${mpdevice} 30 | .endfor 31 | .for texdevice in ${TEXDEVICE} 32 | test -f ${DESTDIR}${DOCDIR}/illustrated.${texdevice} 33 | .endfor 34 | 35 | ### End of file `TestLaTeXGraphicx.mk' 36 | -------------------------------------------------------------------------------- /testsuite/texmf/TestMetapostPure.mk: -------------------------------------------------------------------------------- 1 | ### TestMetapostPure.mk -- Pure figures using Metapost 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 19:20:52 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Pure METAPOST picture 16 | TEST_SOURCEDIR= example/texmf/metapost 17 | 18 | .if "${WITH_TESTSUITE_METAPOST}" == "yes" 19 | TEST_SEQUENCE= preparatives all install 20 | .else 21 | TEST_SEQUENCE= IGNORE 22 | .endif 23 | 24 | TEST_MATRIX= MPDEVICE 25 | TEST_MPDEVICE= eps svg pdf png 26 | 27 | DOCUMENT= square.mp 28 | 29 | test: 30 | test -f ${DESTDIR}${DOCDIR}/square-1.${MPDEVICE} 31 | 32 | ### End of file `TestMetapostPure.mk' 33 | -------------------------------------------------------------------------------- /testsuite/texmf/TestMetapostTeX.mk: -------------------------------------------------------------------------------- 1 | ### TestMetapostTeX.mk -- Metapost figure using TeX labels 2 | 3 | # Author: Michael Grünewald 4 | # Date: Wed Dec 3 07:56:22 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Mixed METAPOST picture with TeX labels 16 | TEST_SOURCEDIR= example/texmf/metapost 17 | 18 | .if "${WITH_TESTSUITE_METAPOST}" == "yes" 19 | TEST_SEQUENCE= preparatives all install 20 | .else 21 | TEST_SEQUENCE= IGNORE 22 | .endif 23 | 24 | TEST_MATRIX= MPDEVICE 25 | TEST_MPDEVICE= eps svg pdf png 26 | 27 | DOCUMENT= texlabel.mp 28 | 29 | test: 30 | test -f ${DESTDIR}${DOCDIR}/texlabel-1.${MPDEVICE} 31 | 32 | ### End of file `TestMetapostTeX.mk' 33 | -------------------------------------------------------------------------------- /testsuite/texmf/TestPlain.mk: -------------------------------------------------------------------------------- 1 | ### TestPlain.mk -- Simple document using plain TeX 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sun Nov 23 16:10:02 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | TEST_DESCRIPTION= Simple plain TeX document 16 | TEST_SOURCEDIR= example/texmf/tex 17 | 18 | .if "${WITH_TESTSUITE_TEXMF}" == "yes" 19 | TEST_SEQUENCE= preparatives all install 20 | .else 21 | TEST_SEQUENCE= IGNORE 22 | .endif 23 | 24 | TEST_MATRIX= TEXDEVICE 25 | TEST_TEXDEVICE= dvi pdf ps 26 | 27 | test: 28 | test -f ${DESTDIR}${DOCDIR}/simple.${TEXDEVICE} 29 | 30 | ### End of file `TestPlain.mk' 31 | -------------------------------------------------------------------------------- /testsuite/www/TestSimpleStatic.mk: -------------------------------------------------------------------------------- 1 | ### TestSimpleStatic.mk -- Generate a simple static HTML document 2 | 3 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 4 | # This file is part of BSD Owl Scripts 5 | # 6 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 7 | # 8 | # This file must be used under the terms of the BSD license. 9 | # This source file is licensed as described in the file LICENSE, which 10 | # you should have received as part of this distribution. 11 | 12 | TEST_DESCRIPTION= Simple static HTML document 13 | TEST_SOURCEDIR= example/www 14 | 15 | .if "${WITH_TESTSUITE_SGMLNORM}" == "yes" 16 | TEST_SEQUENCE= preparatives all install 17 | .else 18 | TEST_SEQUENCE= IGNORE 19 | .endif 20 | 21 | TEST_MATRIX= WWWROOTDIR 22 | TEST_WWWROOTDIR= /var/www 23 | 24 | test: 25 | test -f ${DESTDIR}/var/www/index.html 26 | 27 | ### End of file `TestSimpleStatic.mk' 28 | -------------------------------------------------------------------------------- /texmf/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile -- Support for TeX and METAPOST 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Jul 7 18:12:07 CEST 2007 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | SHARE= texmf.init.mk 16 | SHARE+= texmf.uses.mk 17 | SHARE+= texmf.module.mk 18 | SHARE+= texmf.external.mk 19 | SHARE+= texmf.depend.mk 20 | SHARE+= texmf.clean.mk 21 | SHARE+= texmf.build.mk 22 | SHARE+= texmf.mpost.mk 23 | SHARE+= texmf.draft.mk 24 | SHARE+= texmf.bibtex.mk 25 | SHARE+= texmf.index.mk 26 | 27 | SHARE+= tex.doc.mk 28 | SHARE+= plain.files.mk 29 | SHARE+= latex.doc.mk 30 | SHARE+= latex.files.mk 31 | SHARE+= mpost.doc.mk 32 | SHARE+= mpost.files.mk 33 | 34 | .include "generic.files.mk" 35 | 36 | ### End of file `Makefile' 37 | -------------------------------------------------------------------------------- /texmf/latex.files.mk: -------------------------------------------------------------------------------- 1 | ### latex.files.mk -- Install LaTeX macro files 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 28 10:20:39 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | ### DESCRIPTION 16 | 17 | THISMODULE= latex.files 18 | 19 | .if !defined(FILES)||empty(FILES) 20 | .error The latex.files.mk module expects you to set the FILES\ 21 | variable to a sensible value. 22 | .endif 23 | 24 | _PACKAGE_CANDIDATE= ${FILES} 25 | PRODUCT= ${FILES} 26 | 27 | .if !empty(DOC) 28 | PRODUCT+= ${DOC} 29 | .endif 30 | 31 | FILESDIR?= ${datarootdir}/texmf-local/tex/latex${PACKAGEDIR} 32 | DOCDIR?= ${datarootdir}/texmf-local/doc/latex${PACKAGEDIR} 33 | 34 | .include "bps.init.mk" 35 | .include "bps.man.mk" 36 | .include "bps.files.mk" 37 | .include "bps.clean.mk" 38 | .include "bps.usertarget.mk" 39 | 40 | ### End of file `latex.files.mk' 41 | -------------------------------------------------------------------------------- /texmf/mpost.files.mk: -------------------------------------------------------------------------------- 1 | ### mpost.files.mk -- Install Metapost macro files 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 28 12:15:11 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | ### DESCRIPTION 16 | 17 | THISMODULE= mpost.files 18 | 19 | .if !defined(FILES)||empty(FILES) 20 | .error The mpost.files.mk module expects you to set the FILES\ 21 | variable to a sensible value. 22 | .endif 23 | 24 | _PACKAGE_CANDIDATE= ${FILES} 25 | PRODUCT= ${FILES} 26 | 27 | .if !empty(DOC) 28 | PRODUCT+= ${DOC} 29 | .endif 30 | 31 | FILESDIR?= ${datarootdir}/texmf-local/metapost${PACKAGEDIR} 32 | DOCDIR?= ${datarootdir}/texmf-local/doc/metapost${PACKAGEDIR} 33 | 34 | .include "bps.init.mk" 35 | .include "bps.man.mk" 36 | .include "bps.files.mk" 37 | .include "bps.clean.mk" 38 | .include "bps.usertarget.mk" 39 | 40 | ### End of file `mpost.files.mk' 41 | -------------------------------------------------------------------------------- /texmf/plain.files.mk: -------------------------------------------------------------------------------- 1 | ### plain.files.mk -- Install Plain macro files 2 | 3 | # Author: Michael Grünewald 4 | # Date: Fri Nov 28 12:12:13 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | ### DESCRIPTION 16 | 17 | THISMODULE= plain.files 18 | 19 | .if !defined(FILES)||empty(FILES) 20 | .error The plain.files.mk module expects you to set the FILES\ 21 | variable to a sensible value. 22 | .endif 23 | 24 | _PACKAGE_CANDIDATE= ${FILES} 25 | PRODUCT= ${FILES} 26 | 27 | .if !empty(DOC) 28 | PRODUCT+= ${DOC} 29 | .endif 30 | 31 | FILESDIR?= ${datarootdir}/texmf-local/tex/plain${PACKAGEDIR} 32 | DOCDIR?= ${datarootdir}/texmf-local/doc/plain${PACKAGEDIR} 33 | 34 | .include "bps.init.mk" 35 | .include "bps.man.mk" 36 | .include "bps.files.mk" 37 | .include "bps.clean.mk" 38 | .include "bps.usertarget.mk" 39 | 40 | ### End of file `plain.files.mk' 41 | -------------------------------------------------------------------------------- /texmf/texmf.external.mk: -------------------------------------------------------------------------------- 1 | ### texmf.external.mk -- Use external resources 2 | 3 | # Author: Michael Grünewald 4 | # Date: Mon Nov 24 14:01:36 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | .if !defined(THISMODULE) 16 | .error texmf.external.mk cannot be included directly. 17 | .endif 18 | 19 | .if !target(____) 20 | ____: 21 | 22 | .endif # !target(____) 23 | 24 | ### End of file `texmf.external.mk' 25 | -------------------------------------------------------------------------------- /texmf/texmf.module.mk: -------------------------------------------------------------------------------- 1 | ### texmf.module.mk -- Take in account other modules in the project 2 | 3 | # Author: Michael Grünewald 4 | # Date: Mon Nov 24 14:01:15 CET 2014 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | .if !defined(THISMODULE) 16 | .error texmf.module.mk cannot be included directly. 17 | .endif 18 | 19 | .if !target(____) 20 | ____: 21 | 22 | .for module_name in mpost.files mpost.doc\ 23 | tex.files tex.doc latex.files latex.doc 24 | .for path in MPINPUTS TEXINPUTS 25 | 26 | .for module_path in ${_MODULE_${module_name}_ARGS} 27 | .if empty(${module_path}:M${SRCDIR}/${module_path}) 28 | ${path}+= ${SRCDIR}/${module_path} 29 | .endif 30 | .if empty(${module_path}:M${WRKDIR}/${module_path}) 31 | ${path}+= ${WRKDIR}/${module_path} 32 | .endif 33 | .endfor 34 | 35 | .endfor 36 | .endfor 37 | 38 | .endif # !target(____) 39 | 40 | ### End of file `texmf.module.mk' 41 | -------------------------------------------------------------------------------- /www/Makefile: -------------------------------------------------------------------------------- 1 | ### Makefile 2 | 3 | # Author: Michael Grünewald 4 | # Date: Sat Jul 7 18:12:00 CEST 2007 5 | 6 | # BSD Owl Scripts (https://github.com/michipili/bsdowl) 7 | # This file is part of BSD Owl Scripts 8 | # 9 | # Copyright © 2002–2016 Michael Grünewald. All Rights Reserved. 10 | # 11 | # This file must be used under the terms of the BSD license. 12 | # This source file is licensed as described in the file LICENSE, which 13 | # you should have received as part of this distribution. 14 | 15 | SHARE+= www.files.mk 16 | SHARE+= www.sgml.mk 17 | 18 | .include "generic.files.mk" 19 | 20 | ### End of file `Makefile' 21 | --------------------------------------------------------------------------------