Skip to content

Instantly share code, notes, and snippets.

@GrayJack
Created December 19, 2018 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GrayJack/0dd283a070bd79333a4b5560a5817eeb to your computer and use it in GitHub Desktop.
Save GrayJack/0dd283a070bd79333a4b5560a5817eeb to your computer and use it in GitHub Desktop.
My little script to easilly set up ocaml projects with some basic stuff that I use
#!/bin/sh
if [ $# != 1 ]; then
echo "Usage: $(basename "$0") <project name>" >&2
exit 1
fi
mkdir $1/
mkdir $1/src/
touch $1/src/main.ml
echo "open Containers" >> $1/src/main.ml
touch $1/src/dune
echo "(executable" >> $1/src/dune
echo " (name "$1")" >> $1/src/dune
echo " (libraries containers))" >> $1/src/dune
touch $1/src/.merlin
echo "PKG containers" >> $1/src/.merlin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment