From 2b3d0d815d1144e291a56c3cd94ae8404decb463 Mon Sep 17 00:00:00 2001 From: Martin Logan Date: Sun, 3 Feb 2008 18:47:53 -0600 Subject: [PATCH] a script to create an OTP Base bootstrapper --- README | 6 +++--- bootstrap_creator/create_bootstrap.sh | 18 ++++++++++++++++++ build/otp.mk | 4 ++-- 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100755 bootstrap_creator/create_bootstrap.sh diff --git a/README b/README index db1e3bf..80fd266 100644 --- a/README +++ b/README @@ -27,8 +27,8 @@ export ERL_RUN_TOP=/home/jdoe/erlang Creating a new application ========================== -A new application can be created by using the application_generation utility in tools/utilities. -This utility will create a basic OTP app framework under the lib directory +A new application can be created by using the tools/application_generation utility. +This utility will create a basic OTP application framework under the lib directory usage: application_generation @@ -45,7 +45,7 @@ lib/my_app Creating a new release ====================== -A release is the OTP packaging structure that binds together a number of applications, configuration, and startup scripts to create a standalone Erlang service. To create a new release from which to run your application(s) you can use the tools/utilities/release_generation script. +A release is the OTP packaging structure that binds together a number of applications, configuration, and startup scripts to create a standalone Erlang service. To create a new release from which to run your application(s) you can use the tools/release_generation script. usage: release_generation example usage: release_generation test diff --git a/bootstrap_creator/create_bootstrap.sh b/bootstrap_creator/create_bootstrap.sh new file mode 100755 index 0000000..c6d493c --- /dev/null +++ b/bootstrap_creator/create_bootstrap.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +CURRENT_BOOTSTRAPPER_VSN="V3" +FILENAME=otp-base-installer-$CURRENT_BOOTSTRAPPER_VSN.sh + +cd $(dirname $0) + +cd ../ +tar -zcvf contents.tar.gz Makefile README build lib licence.txt release tools +cd - +mv ../contents.tar.gz . + +cat header.txt > $FILENAME +cat contents.tar.gz >> $FILENAME +rm contents.tar.gz + +chmod +x $FILENAME +echo "done creating $FILENAME" diff --git a/build/otp.mk b/build/otp.mk index 703f418..8a448ca 100644 --- a/build/otp.mk +++ b/build/otp.mk @@ -9,12 +9,12 @@ # The erts version to use when running your release ifndef TARGET_ERTS_VSN -TARGET_ERTS_VSN=5.5.5 +TARGET_ERTS_VSN=%TARGET_ERTS_VSN% endif # The location of systemwide installed packages. ifndef ERLWARE_HOME -ERLWARE_HOME=/usr/local/erlware +ERLWARE_HOME=%FAXIEN_INSTALL_DIR% endif # group owner for library/include directories -- 2.11.4.GIT