33
33
echo "release [-a] <target_dir> - creates full release to <target_dir>"
34
34
echo "tests <dir> - Build testsuites to <dir>"
36
echo "remove_prebuilt_files - create a minimal source tree"
37
echo "save_bootstrap - recreate primary bootstrap"
36
39
echo "debuginfo_win32 <dir> - adds debug emulator and pdb files to <dir>"
37
40
echo "installer_win32 <dir> - creates a windows installer from <dir>"
680
683
(cd $installer_dir; $MAKE MAKE="$MAKE" TARGET=$TARGET TESTROOT=$1 release) || exit 1
686
do_copy_primary_bootstrap ()
688
if [ "x$1" = "x" ]; then
689
echo "Missing bootstrap source top" 1>&2
693
echo "Invalid bootstrap source top" 1>&2
696
if [ "x$2" = "x" ]; then
697
echo "Missing bootstrap root" 1>&2
701
echo "Invalid bootstrap root" 1>&2
705
bootstrap=$2/bootstrap
707
lib_src=$bootstrap_src_top/lib
710
test -d $bootstrap/lib/kernel/ebin || mkdir -p $bootstrap/lib/kernel/ebin
711
test -d $bootstrap/lib/kernel/include || mkdir -p $bootstrap/lib/kernel/include
712
cp -f $lib_src/kernel/ebin/*.beam $bootstrap/lib/kernel/ebin
713
cp -f $lib_src/kernel/ebin/*.app* $bootstrap/lib/kernel/ebin
714
cp -f $lib_src/kernel/include/*.hrl $bootstrap/lib/kernel/include
717
test -d $bootstrap/lib/stdlib/ebin || mkdir -p $bootstrap/lib/stdlib/ebin
718
test -d $bootstrap/lib/stdlib/include || mkdir -p $bootstrap/lib/stdlib/include
719
cp -f $lib_src/stdlib/ebin/*.beam $bootstrap/lib/stdlib/ebin
720
cp -f $lib_src/stdlib/ebin/*.app* $bootstrap/lib/stdlib/ebin
721
cp -f $lib_src/stdlib/include/*.hrl $bootstrap/lib/stdlib/include
724
test -d $bootstrap/lib/compiler/ebin || mkdir -p $bootstrap/lib/compiler/ebin
725
cp -f $lib_src/compiler/ebin/*.beam $bootstrap/lib/compiler/ebin
726
cp -f $lib_src/compiler/ebin/*.app* $bootstrap/lib/compiler/ebin
729
test -d $bootstrap/lib/orber/include || mkdir -p $bootstrap/lib/orber/include
730
cp -f $lib_src/orber/include/* $bootstrap/lib/orber/include
733
if [ $bootstrap_src_top != $ERL_TOP ]; then
734
test -d $bootstrap/bin || mkdir -p $bootstrap/bin
735
cp -f $bootstrap_src_top/bin/* $bootstrap/bin
742
if [ ! -f $ERL_TOP/prebuilt.files ]; then
743
echo "This is not a pre-built source distribution" 1>&2
746
if [ -d $ERL_TOP/bootstrap/lib ]; then
747
echo "Bootstrap already exist" 1>&2
751
do_copy_primary_bootstrap $ERL_TOP $ERL_TOP
754
do_remove_prebuilt_files ()
757
for file in $ERL_TOP/`cat $ERL_TOP/prebuilt.files` ; do