source: tol/linux/uptol @ 1b5b24e

devel
Last change on this file since 1b5b24e was 0d8e27b, checked in by Jorge Pérez <josp.jorge@…>, 15 years ago

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4541 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100755
File size: 979 bytes
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
9DEFINE_string 'prefix' '/usr/local/tol32' 'location to install' 'p'
10DEFINE_string 'withtcl' '/usr/lib/tcl8.4' 'location of tclConfig.sh' 't'
11
12# parse the command-line
13FLAGS "$@" || exit 1
14eval set -- "${FLAGS_ARGV}"
15
16# dump configuration
17echo "prefix=${FLAGS_prefix}"
18echo "withtcl=${FLAGS_withtcl}"
19
20pushd ../tol
21./bjam-gcc-release --prefix=${FLAGS_prefix}
22./sudo_install --prefix=${FLAGS_prefix}
23popd
24
25pushd ../toltcl/release
26./default_config.sh --with-tcl=${FLAGS_withtcl} --with-tol=${FLAGS_prefix}
27make
28sudo make install
29popd
30
31pushd ../tolsh
32./build.sh
33sudo cp Linux/tolsh3.2 ${FLAGS_prefix}/bin/tolsh
34popd
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
39sudo ${FLAGS_prefix}/bin/tolsh -c "TolPackage::Client::DefaultFetch(?)"
Note: See TracBrowser for help on using the repository browser.