Megatest

Check-in [af55ffc7d7]
Login
Overview
Comment:Added deploy script
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: af55ffc7d7ab293fa47724e384d6aca89bd7dae9
User & Date: matt on 2012-11-06 06:21:44
Other Links: manifest | tags
Context
2012-11-06
09:44
Testing ordering of loading zmq, fixes to deploy script check-in: 8c476e8627 user: mrwellan tags: trunk
06:21
Added deploy script check-in: af55ffc7d7 user: matt tags: trunk
2012-11-05
22:48
Added deploy support to makefile check-in: 99ad4e773f user: matt tags: trunk
Changes

Added utils/deploy.sh version [c79c41a021].





















































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash

set -x

if [[ $DEPLOYTARG == "" ]] ; then
    echo Installing into deploytarg
    export DEPLOYTARG=$PWD/deploytarg
fi

# Make the deploy dir
mkdir -p $DEPLOYTARG

if [[ $proxy == "" ]]; then 
  echo 'Please set the environment variable "proxy" to host.com:port (e.g. foo.com:1234) if you need to use a proxy'
  echo PROX=""
else
  export http_proxy=http://$proxy
  export PROX="-proxy $proxy"
fi

export CHICKENINSTDIR=$(dirname $(dirname $(type -p csi)))

# First copy in the needed iup, sqlite3 and zmq libraries
cp $CHICKENINSTDIR/lib/lib{zmq,uuid}* $DEPLOYTARG


# Then run the deploy for all needed # Some eggs are quoted since they are reserved to Bash
for f in matchable readline apropos base64 regex-literals format "regex-case" "test" coops \
         trace csv dot-locking posix-utils posix-extras directory-utils hostinfo tcp rpc \
         csv-xml fmt json md5 iup canvas-draw sqlite3 ; do
  if ! [[ -e $DEPLOYTARG/$f.so ]];then
    chicken-install -deploy $f -prefix $DEPLOYTARG
    # chicken-install -deploy -prefix $DEPLOYTARG $PROX $f
  else
    echo Skipping install of egg $f as it is already installed
  fi
done

CSC_OPTIONS="-I$CHICKENINSTDIR/include -L$DEPLOYTARG" chicken-install -deploy zmq -prefix $DEPLOYTARG

make $DEPLOYTARG/megatest
make $DEPLOYTARG/dashboard