https://github.com/artob/templates
My open-source project templates.
https://github.com/artob/templates
polyglot programming templates
Last synced: 9 months ago
JSON representation
My open-source project templates.
- Host: GitHub
- URL: https://github.com/artob/templates
- Owner: artob
- License: unlicense
- Created: 2015-11-01T20:30:13.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-11T14:27:19.000Z (over 5 years ago)
- Last Synced: 2025-04-02T12:53:28.867Z (9 months ago)
- Topics: polyglot, programming, templates
- Language: Elixir
- Homepage:
- Size: 121 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Contributing: .github/contributing.md
- Support: .github/support.md
Awesome Lists containing this project
README
************************
Arto's Project Templates
************************
These are my coding project templates for the `programming languages
`__ I most frequently work with and publish
open-source projects in.
C++ (Autotools)
===============
TODO
C++ (Header-only)
=================
TODO
Common Lisp
===========
TODO
Elixir
======
TODO
Nim
===
TODO
OCaml
=====
Instructions
------------
- Edit META.in to define package/subpackage hierarchy, if needed.
- Edit Makefile to correct $PACKAGE_NAME and $PACKAGE_TARNAME.
- Rename foobar.install to $PACKAGE_TARNAME.install.
- Edit $PACKAGE_TARNAME.install to replace "foobar" with $PACKAGE_TARNAME.
- Rename foobar.opam to $PACKAGE_TARNAME.opam.
- Edit $PACKAGE_TARNAME.opam to replace "foobar" with $PACKAGE_TARNAME,
correct project links, and define package dependencies.
- Rename src/foobar.{ml,mli} to src/$PACKAGE_TARNAME.{ml,mli}.
::
$ export PACKAGE_TARNAME=barfoo
$ sed -e "s:foobar:$PACKAGE_TARNAME:g" -i '' Makefile
$ git mv foobar.install $PACKAGE_TARNAME.install
$ sed -e "s:foobar:$PACKAGE_TARNAME:g" -i '' $PACKAGE_TARNAME.install
$ git mv foobar.opam $PACKAGE_TARNAME.opam
$ sed -e "s:foobar:$PACKAGE_TARNAME:g" -i '' $PACKAGE_TARNAME.opam
$ git mv src/foobar.ml src/$PACKAGE_TARNAME.ml
$ git mv src/foobar.mli src/$PACKAGE_TARNAME.mli
Workflow
--------
::
$ opam pin add foobar . --no-action
$ opam uninstall foobar
$ opam install foobar --verbose
References
----------
* https://opam.ocaml.org/doc/Packaging.html
* https://opam.ocaml.org/doc/Manual.html
Python
======
TODO
Ruby
====
TODO