1. Leo Wandersleb
  2. glob2

Source

glob2 / linuxstaticrelease-local.sh

#!/bin/sh
DATESTAMP=`date +%Y%m%d`
echo "Configuring without OpenGL"
export CXXFLAGS=-O2
export CFLAGS=-O2
export CXX=g++
export CC=gcc
export G2VER=0.8.5
./configure
echo "Making glob2"
make 
#>& /dev/null
cd src
echo "Creating static binary"
./staticlink.sh
cd ..
echo "Creating source distrib"
make dist >& /dev/null
echo "Decompressing dist archive in /tmp"
gunzip -cd glob2-$G2VER.tar.gz | tar x -C/tmp
echo "Patching archive with binary files"
cp src/glob2 /tmp/glob2-$G2VER/src
echo "Recompressing archive"
cd /tmp
tar cfz glob2-static-$G2VER.tar.gz glob2-$G2VER/
#tar cfz glob2-$DATESTAMP-static.tar.gz glob2-0.1/
#scp glob2-$DATESTAMP-static.tar.gz nct@lappc22.epfl.ch:~/public_html/
#ssh nct@lappc22.epfl.ch ln -f -s ~/public_html/glob2-$DATESTAMP-static.tar.gz ~/public_html/glob2-latest-static.tar.gz