… | |
… | |
66 | DISTf="dist/$OS-$ARCHNAME" |
66 | DISTf="dist/$OS-$ARCHNAME" |
67 | export DIST="$(pwd)/$DISTf" |
67 | export DIST="$(pwd)/$DISTf" |
68 | |
68 | |
69 | eval $("$PERL" -V:sitebinexp:) |
69 | eval $("$PERL" -V:sitebinexp:) |
70 | |
70 | |
71 | "$PERL" "$sitebinexp"/perl-libextractor --exedir . --dlldir . --bindir pm/bin --libdir pm \ |
71 | "$PERL" "$sitebinexp"/perl-libextractor \ |
72 | --perl --core-support --script deliantra $EXTRA_EXTRACT \ |
72 | --perl --core-support --script deliantra $EXTRA_EXTRACT \ |
73 | --runtime-only \ |
73 | --runtime-only \ |
74 | --copy "$DISTf" |
74 | --copy "$DISTf" --exedir . --dlldir . --bindir pm/bin --libdir pm |
75 | |
75 | |
76 | cat <<EOF >"$DIST"/pango.rc |
76 | cat <<EOF >"$DIST"/pango.rc |
77 | [Pango] |
77 | [Pango] |
78 | ModuleFiles = pango.modules |
78 | ModuleFiles = pango.modules |
79 | EOF |
79 | EOF |
… | |
… | |
136 | } |
136 | } |
137 | |
137 | |
138 | ( |
138 | ( |
139 | cd "$DIST" |
139 | cd "$DIST" |
140 | |
140 | |
141 | if [ "$OS" = windows ]; then |
141 | case "$OS" in |
|
|
142 | windows ) |
142 | 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 . |
143 | cp /root/src/CFPlus/util/splash.bmp . |
145 | cp /root/src/CFPlus/util/splash.bmp . |
144 | chmod -R u+rwX pm/auto |
146 | chmod -R u+rwX pm/auto |
145 | |
147 | |
146 | # convert perl to a non-console-app |
148 | # convert perl to a non-console-app |
147 | $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 |
148 | |
155 | |
149 | else |
156 | if [ "$OS" != windows ]; then |
150 | for lib in mikmod vorbisfile; do |
157 | for lib in mikmod vorbisfile; do |
151 | cp -p $SYSLIB/lib$lib.$LIB0 . |
158 | cp -p $SYSLIB/lib$lib.$LIB0 . |
152 | chmod 755 lib$lib.$LIB0 |
159 | chmod 755 lib$lib.$LIB0 |
153 | done |
160 | done |
154 | fi |
161 | fi |