Skip to content
Browse files

binary script booticn

  • Loading branch information...
1 parent 568cb83 commit 23a64a04e5f1acb7f25b718482a0cd3352a8e0d0 @zgbjgg committed
Showing with 1 addition and 30 deletions.
  1. +1 −1 README
  2. +0 −29 boot
  3. BIN booticn
View
2 README
@@ -16,7 +16,7 @@
build the project and script:
- $ ./boot
+ $ ./booticn
now you can use the icnelia script in your OTP applications:
View
29 boot
@@ -1,29 +0,0 @@
-#!/bin/sh
-#
-# ICNELIA : Helper for compile, clean and create run scripts for
-# an erlang OTP application
-#
-# Copyright (C) 2012, Jorge Garrido <jorge.garrido@morelosoft.com>
-#
-# All rights reserved.
-#
-
-# creates dir ebin if not exists
-echo "creating dirs ..." && mkdir -p ebin || { echo "error"; exit 1; }
-
-# compiles the src code (erlang)
-echo "compiling ..." && erlc -o ebin src/*.erl || { echo "error"; exit 1; }
-
-# creates script executable from beam
-# copy into script
-echo "copying the files ..." && cat ebin/*.beam >> icnelia || { echo "error"; exit 1; }
-
-# set headers for escript, make runnable on any machine
-echo "building script ..." && sed -i '1i%%! -pa '$PWD'/ebin' icnelia && sed -i '1i#!/usr/bin/env escript' icnelia || { echo "error"; exit 1; }
-
-# set permissions for escript
-echo "setting permissions ..." && chmod u+x icnelia || { echo "error"; exit 1; }
-
-# send a help message
-echo "Icnelia has been compiled, now you can use the icnelia script to"
-echo " compile, clean and create run scripts for your erlang otp application"
View
BIN booticn
Binary file not shown.

0 comments on commit 23a64a0

Please sign in to comment.
Something went wrong with that request. Please try again.