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.13 by root, Fri Jan 27 01:43:03 2012 UTC vs.
Revision 1.15 by root, Sat Jan 28 00:03:31 2012 UTC

10SO=so 10SO=so
11SYSLIB=/usr/lib 11SYSLIB=/usr/lib
12MAKE=make 12MAKE=make
13ARCHNAME=x86 13ARCHNAME=x86
14GENPACK_ENVVARS="LD_LIBRARY_PATH=." 14GENPACK_ENVVARS="LD_LIBRARY_PATH=."
15EXTRA_EXTRACT=
15 16
16umask 022 17umask 022
17 18
18if [ "$(uname -s)" = CYGWIN_NT-5.0 ]; then 19if [ "$(uname -s)" = CYGWIN_NT-5.0 ]; then
19 . ~/.setenv 20 . ~/.setenv
26 SYSLIB=/c/gtk/bin 27 SYSLIB=/c/gtk/bin
27 LIBEXT=dll 28 LIBEXT=dll
28 LIB0=dll 29 LIB0=dll
29 SO=dll 30 SO=dll
30 STRIP=":" # stripping the perl library kills it, and apparently, everythignis always stripped 31 STRIP=":" # stripping the perl library kills it, and apparently, everythignis always stripped
32 EXTRA_EXTRACT="-MWin32::GUI::SplashScreen"
31 33
32 # fontconfig apparently ignores env vars and always looks at ./etc/fonts/fonts.conf, 34 # fontconfig apparently ignores env vars and always looks at ./etc/fonts/fonts.conf,
33 # but only if . isn't actually called bin or lib. hope for the best. 35 # but only if . isn't actually called bin or lib. hope for the best.
34 GENPACK_ENVVARS="FONTCONFIG_PATH=pm/Deliantra/Client/private/resources/fonts FONTCONFIG_FILE=fonts.conf" 36 GENPACK_ENVVARS="FONTCONFIG_PATH=pm/Deliantra/Client/private/resources/fonts FONTCONFIG_FILE=fonts.conf"
35 37
64DISTf="dist/$OS-$ARCHNAME" 66DISTf="dist/$OS-$ARCHNAME"
65export DIST="$(pwd)/$DISTf" 67export DIST="$(pwd)/$DISTf"
66 68
67eval $("$PERL" -V:sitebinexp:) 69eval $("$PERL" -V:sitebinexp:)
68 70
69"$PERL" "$sitebinexp"/perl-libextractor --exedir . --dlldir . --bindir pm/bin --libdir pm \ 71"$PERL" "$sitebinexp"/perl-libextractor \
70 --perl --core-support --script deliantra \ 72 --perl --core-support --script deliantra $EXTRA_EXTRACT \
71 --runtime-only --strip \ 73 --runtime-only \
72 --copy "$DISTf" 74 --copy "$DISTf" --exedir . --dlldir . --bindir pm/bin --libdir pm
73 75
74cat <<EOF >"$DIST"/pango.rc 76cat <<EOF >"$DIST"/pango.rc
75[Pango] 77[Pango]
76ModuleFiles = pango.modules 78ModuleFiles = pango.modules
77EOF 79EOF
134} 136}
135 137
136( 138(
137 cd "$DIST" 139 cd "$DIST"
138 140
139 if [ "$OS" = windows ]; then 141 case "$OS" in
142 windows )
140 cp -p $SYSLIB/libvorbisfile-3.dll $SYSLIB/mikmod.dll $SYSLIB/libpng12-0.dll . 143 cp -p $SYSLIB/libvorbisfile-3.dll $SYSLIB/mikmod.dll $SYSLIB/libpng12-0.dll $SYSLIB/jpeg.dll .
144 cp -p $SYSLIB/jpeg.dll .
141 cp /root/src/CFPlus/util/splash.bmp . 145 cp /root/src/CFPlus/util/splash.bmp .
142 chmod -R u+rwX pm/auto 146 chmod -R u+rwX pm/auto
143 147
144 # convert perl to a non-console-app 148 # convert perl to a non-console-app
145 $PERL -MWin32::Exe -e '$e = new Win32::Exe"perl.exe"; $e->set_subsystem_windows; $e->write' 149 $PERL -MWin32::Exe -e '$e = new Win32::Exe"perl.exe"; $e->set_subsystem_windows; $e->write'
150 ;;
151 linux )
152 cp -p $SYSLIB/libjpeg.so.62 .
153 ;;
154 esac
146 155
147 else 156 if [ "$OS" != windows ]; then
148 for lib in mikmod vorbisfile; do 157 for lib in mikmod vorbisfile; do
149 cp -p $SYSLIB/lib$lib.$LIB0 . 158 cp -p $SYSLIB/lib$lib.$LIB0 .
150 chmod 755 lib$lib.$LIB0 159 chmod 755 lib$lib.$LIB0
151 done 160 done
152 fi 161 fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines