Added babel file. Added install instructions.

This commit is contained in:
Dominik Picheta 2013-08-19 16:09:47 +01:00
commit 62b0ddd8c2
2 changed files with 6 additions and 2 deletions

View file

@ -257,6 +257,7 @@ proc installFromDir(dir: string, latest: bool): string =
let currentPerms = getFilePermissions(pkgDestDir / bin)
setFilePermissions(pkgDestDir / bin, currentPerms + {fpUserExec})
when defined(unix):
if existsFile(binDir / bin): removeFile(binDir / bin)
echo("Creating symlink: ", pkgDestDir / bin, " -> ", binDir / bin)
doCmd("ln -s \"" & pkgDestDir / bin & "\" " & binDir / bin)
elif defined(windows):

View file

@ -1,10 +1,13 @@
# Babel
Babel is a *beta*-grade *package manager* for the Nimrod programming language.
## Compiling babel
## Installation
You will need the latest Nimrod compiler from github to compile babel (version 0.9.2 may work).
Compiling it is as simple as ``nimrod c -d:release babel``.
Compile babel by executing: ``nimrod c -d:release babel``. Then simply install
babel by executing ``./babel install``. You should then add ``~/.babel/bin``
to your $PATH.
## Babel's folder structure
Babel stores everything that has been installed in ~/.babel on Unix systems and