1941-docker-image-to-testdevel
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | #!/bin/sh |
|---|
| 4 | |
|---|
| 5 | # source shflags from current directory |
|---|
| 6 | . ./shflags |
|---|
| 7 | |
|---|
| 8 | # define a 'prefix' command-line string flag |
|---|
| 9 | DEFINE_string 'prefix' '/usr/local/tol32' 'location to install' 'p' |
|---|
| 10 | DEFINE_string 'withtcl' '/usr/lib/tcl8.4' 'location of tclConfig.sh' 't' |
|---|
| 11 | |
|---|
| 12 | # parse the command-line |
|---|
| 13 | FLAGS "$@" || exit 1 |
|---|
| 14 | eval set -- "${FLAGS_ARGV}" |
|---|
| 15 | |
|---|
| 16 | # dump configuration |
|---|
| 17 | echo "prefix=${FLAGS_prefix}" |
|---|
| 18 | echo "withtcl=${FLAGS_withtcl}" |
|---|
| 19 | |
|---|
| 20 | pushd ../tol |
|---|
| 21 | ./bjam-gcc-release --prefix=${FLAGS_prefix} |
|---|
| 22 | ./sudo_install --prefix=${FLAGS_prefix} |
|---|
| 23 | popd |
|---|
| 24 | |
|---|
| 25 | pushd ../toltcl/release |
|---|
| 26 | ./default_config.sh --with-tcl=${FLAGS_withtcl} --with-tol=${FLAGS_prefix} |
|---|
| 27 | make |
|---|
| 28 | sudo make install |
|---|
| 29 | popd |
|---|
| 30 | |
|---|
| 31 | pushd ../tolsh |
|---|
| 32 | ./build.sh |
|---|
| 33 | sudo cp Linux/tolsh3.2 ${FLAGS_prefix}/bin/tolsh |
|---|
| 34 | popd |
|---|
| 35 | |
|---|
| 36 | # first execution of TOL under current user is to create tolcore.oza |
|---|
| 37 | ${FLAGS_prefix}/bin/tolsh -c "Real 1" |
|---|
| 38 | # this execution is to download last version of default packages |
|---|
| 39 | sudo ${FLAGS_prefix}/bin/tolsh -c "TolPackage::Client::DefaultFetch(?)" |
|---|
Note: See
TracBrowser
for help on using the repository browser.