ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/util/gatherer
(Generate patch)

Comparing deliantra/Deliantra-Client/util/gatherer (file contents):
Revision 1.2 by root, Fri Dec 30 05:44:23 2011 UTC vs.
Revision 1.4 by root, Fri Dec 30 06:52:07 2011 UTC

1#!/bin/bash 1#!/bin/bash
2
3# this gem of a hack gathers all fiels required by the client for the platform
4# by deep magic, it works on osx, linux and windows. on MY osx, linux
5# and windows, that is.
2 6
3STRIP="strip" 7STRIP="strip"
4LIBEXT=so 8LIBEXT=so
5LIB0=so.? 9LIB0=so.?
6SO=so 10SO=so
7SYSLIB=/usr/lib 11SYSLIB=/usr/lib
8MAKE=make 12MAKE=make
9ARCHNAME=x86 13ARCHNAME=x86
10GENPACK_ENVVARS= 14GENPACK_ENVVARS="LD_LIBRARY_PATH=."
11 15
12umask 022 16umask 022
13 17
14if [ "$(uname -s)" = CYGWIN_NT-5.0 ]; then 18if [ "$(uname -s)" = CYGWIN_NT-5.0 ]; then
15 . ~/.setenv 19 . ~/.setenv
36elif [ "$(uname -s)" = Darwin ]; then 40elif [ "$(uname -s)" = Darwin ]; then
37 OS=darwin 41 OS=darwin
38 URLADER=-osx105 42 URLADER=-osx105
39 PANGO=1.6.0 43 PANGO=1.6.0
40 PERL=/opt/local/bin/perl 44 PERL=/opt/local/bin/perl
45 GENPACK_ENVVARS="DYLD_LIBRARY_PATH=."
41 46
42 SYSLIB=/opt/local/lib 47 SYSLIB=/opt/local/lib
43 LIB0=dylib 48 LIB0=dylib
44 SO=bundle 49 SO=bundle
45 STRIP="strip -x" 50 STRIP="strip -x"
66 71
67export EV_EVENTFD=0 72export EV_EVENTFD=0
68export EV_INOTIFY=0 73export EV_INOTIFY=0
69export EV_SIGNALFD=0 74export EV_SIGNALFD=0
70 75
71if false; then 76if true; then
77 for mod in deliantra/Deliantra deliantra/Deliantra-Client; do
72# for mod in common-sense AnyEvent EV JSON-XS Deliantra Compress-LZF BDB Guard CFPlus; do 78# for mod in common-sense AnyEvent EV JSON-XS deliantra/Deliantra Compress-LZF BDB Guard deliantra/Deliantra-Client; do
73 for mod in CFPlus; do 79# for mod in CFPlus; do
74 ( 80 (
75 cd /root/src/$mod 81 cd /root/src/$mod
82 cvs update -AdP
76 $PERL Makefile.PL </dev/null 83 $PERL Makefile.PL </dev/null >/dev/null
77 $MAKE clean 84 $MAKE clean >/dev/null
78 $PERL Makefile.PL </dev/null 85 $PERL Makefile.PL </dev/null >/dev/null
79 $MAKE install || exit 86 if ! $MAKE install >log 2>&1; then
87 cat log
88 exit
89 fi
90 rm -f log
80 $MAKE clean 91 $MAKE clean >/dev/null
81 ) 92 ) || exit
82 done 93 done
83fi 94fi
84 95
85cat <<EOF >"$DIST"/pango.rc 96cat <<EOF >"$DIST"/pango.rc
86[Pango] 97[Pango]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines