Script follows. It creates the directories that go into win32/optional-libs.exe.
#!/bin/sh
# Make a directory containing the pre-built auxiliary library files.
# Source and destination directories
srcdir=/src
destdir=/src/zipped
# Versions of the various libraries to be copied
compface=compface-1.5.1
db=db-4.3.28
gmp=gmp-4.1.2
jpeg=jpeg-6b
libpng=libpng-1.2.8
postgresql=postgresql-8.0.3
tiff=tiff-3.7.3
xpm=xpm-3.4k
zlib=zlib-1.2.3
# Files to be copied
# Do it.
mkdir -p $destdir
mkdir -p $destdir/$compface
cd $srcdir/$compface
cp compface.h *.exe *.lib *.dll $destdir/$compface
mkdir -p $destdir/$db/build_win32/Release
mkdir -p $destdir/$db/build_win32/Release_static
cd $srcdir/$db/build_win32
cp *.h $destdir/$db/build_win32
cd Release
cp *.dll *.lib *.exe $destdir/$db/build_win32/Release
cd ../Release_static
# Don't copy static .exe's; they're just way too big
cp *.lib $destdir/$db/build_win32/Release_static
mkdir -p $destdir/$gmp/gmp-dynamic
mkdir -p $destdir/$gmp/gmp-static
cd $srcdir/$gmp
cd gmp-dynamic
cp *.h *.dll *.lib $destdir/$gmp/gmp-dynamic
cd ../gmp-static
cp *.h *.lib $destdir/$gmp/gmp-static
mkdir -p $destdir/$jpeg
cd $srcdir/$jpeg
cp *.h *.exe *.lib $destdir/$jpeg
mkdir -p $destdir/$libpng
cd $srcdir/$libpng
cp *.h *.lib $destdir/$libpng
mkdir -p $destdir/$postgresql/src/interfaces/libpq/Release
cd $srcdir/$postgresql/src
cp -a include $destdir/$postgresql/src
cd interfaces/libpq
cp *.h $destdir/$postgresql/src/interfaces/libpq
cd Release
cp *.dll *.lib $destdir/$postgresql/src/interfaces/libpq/Release
mkdir -p $destdir/$tiff/libtiff
cd $srcdir/$tiff/libtiff
cp tiff.h tiffio.h tiffvers.h *.dll *.lib $destdir/$tiff/libtiff
mkdir -p $destdir/$xpm/X11
mkdir -p $destdir/$xpm/lib
cd $srcdir/$xpm/X11
cp *.h $destdir/$xpm/X11
cd ../lib
cp xpm.h XpmI.h simx.h *.lib *.dll $destdir/$xpm/lib
mkdir -p $destdir/$zlib
cd $srcdir/$zlib
cp *.h *.dll *.lib $destdir/$zlib
Show replies by date