#!/bin/bash # (c) 2004 - Robert Citek # licensed under the GPL - http://www.gnu.org/licenses/gpl.txt set -x # setup environment export snapshot=20040421 export build_patch=20040421 export SOURCE_DIR=$PWD/source export PREFIX=$PWD/mingw32 for i in $SOURCE_DIR $PREFIX ; do [ -d $i ] || mkdir -p $i || exit 1 done # download tar files wget -N -P $SOURCE_DIR http://colinux.org/snapshots/colinux-$snapshot.tar.gz wget -N -P $SOURCE_DIR http://cwelug.org/~rwcitek/colinux/build-colinux.sh-$build_patch # untar tar -xzf $SOURCE_DIR/colinux-$snapshot.tar.gz # apply patch ( cd colinux-$snapshot patch -p1 < $SOURCE_DIR/build-colinux.sh-$build_patch chmod u+x ./bin/build-colinux.sh ) # to build everything uncomment the line below ( cd colinux-$snapshot/bin # ./build-all.sh )