Created
December 19, 2018 10:52
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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