2007-05-26 22:23:49 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
function qpushd() { pushd "$@" >/dev/null; }
|
|
|
|
|
function qpopd() { popd >/dev/null; }
|
|
|
|
|
function unix_path() { echo "$*" | sed 's,^\([A-Za-z]\):,/\1,;s,\\,/,g'; }
|
|
|
|
|
|
|
|
|
|
qpushd "$(dirname $(unix_path "$0"))"
|
|
|
|
|
. functions.sh
|
|
|
|
|
. defaults.sh
|
|
|
|
|
|
|
|
|
|
register_env_var PATH ":"
|
|
|
|
|
|
|
|
|
|
function prepare() {
|
|
|
|
|
# this directory is hardcoded in gnucash.iss.in
|
|
|
|
|
DIST_DIR=${INSTALL_DIR}\\..\\dist
|
|
|
|
|
DIST_UDIR=`unix_path $DIST_DIR`
|
|
|
|
|
DIST_WFSDIR=`win_fs_path $DIST_DIR`
|
|
|
|
|
TMP_UDIR=`unix_path $TMP_DIR`
|
|
|
|
|
if [ -x $DIST_DIR ]; then
|
|
|
|
|
die "Please remove ${DIST_DIR} first"
|
|
|
|
|
fi
|
|
|
|
|
_UNZIP_UDIR=`unix_path $UNZIP_DIR`
|
|
|
|
|
_AUTOTOOLS_UDIR=`unix_path $AUTOTOOLS_DIR`
|
|
|
|
|
_GUILE_UDIR=`unix_path $GUILE_DIR`
|
|
|
|
|
_WIN_UDIR=`unix_path $WINDIR`
|
|
|
|
|
_EXETYPE_UDIR=`unix_path $EXETYPE_DIR`
|
|
|
|
|
_GNOME_UDIR=`unix_path $GNOME_DIR`
|
|
|
|
|
_PCRE_UDIR=`unix_path $PCRE_DIR`
|
|
|
|
|
_LIBGSF_UDIR=`unix_path $LIBGSF_DIR`
|
|
|
|
|
_GOFFICE_UDIR=`unix_path $GOFFICE_DIR`
|
|
|
|
|
_OPENSP_UDIR=`unix_path $OPENSP_DIR`
|
|
|
|
|
_LIBOFX_UDIR=`unix_path $LIBOFX_DIR`
|
2008-09-30 21:50:11 +00:00
|
|
|
_GMP_UDIR=`unix_path $GMP_DIR`
|
|
|
|
|
_GNUTLS_UDIR=`unix_path $GNUTLS_DIR`
|
2007-05-26 22:23:49 +00:00
|
|
|
_GWENHYWFAR_UDIR=`unix_path $GWENHYWFAR_DIR`
|
|
|
|
|
_AQBANKING_UDIR=`unix_path $AQBANKING_DIR`
|
2008-08-20 12:09:10 +00:00
|
|
|
_SQLITE3_UDIR=`unix_path ${SQLITE3_DIR}`
|
2009-06-09 23:41:39 +00:00
|
|
|
_MYSQL_LIB_UDIR=`unix_path ${MYSQL_LIB_DIR}`
|
2009-06-29 21:10:21 +00:00
|
|
|
_PGSQL_UDIR=`unix_path ${PGSQL_DIR}`
|
2008-08-20 12:09:10 +00:00
|
|
|
_LIBDBI_UDIR=`unix_path ${LIBDBI_DIR}`
|
|
|
|
|
_LIBDBI_DRIVERS_UDIR=`unix_path ${LIBDBI_DRIVERS_DIR}`
|
2008-08-01 16:02:07 +00:00
|
|
|
_LIBGDA_UDIR=`unix_path $LIBGDA_DIR`
|
2007-05-26 22:23:49 +00:00
|
|
|
_GNUCASH_UDIR=`unix_path $GNUCASH_DIR`
|
|
|
|
|
_REPOS_UDIR=`unix_path $REPOS_DIR`
|
|
|
|
|
_BUILD_UDIR=`unix_path $BUILD_DIR`
|
|
|
|
|
_INSTALL_UDIR=`unix_path $INSTALL_DIR`
|
|
|
|
|
_INNO_UDIR=`unix_path $INNO_DIR`
|
2009-06-02 02:01:59 +00:00
|
|
|
_WEBKIT_UDIR=`unix_path $WEBKIT_DIR`
|
2007-05-26 22:23:49 +00:00
|
|
|
add_to_env $_UNZIP_UDIR/bin PATH # unzip
|
|
|
|
|
add_to_env $_GNOME_UDIR/bin PATH # gconftool-2
|
|
|
|
|
add_to_env $_EXETYPE_UDIR/bin PATH # exetype
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_regex() {
|
|
|
|
|
setup RegEx
|
|
|
|
|
smart_wget $REGEX_URL $DOWNLOAD_DIR
|
|
|
|
|
unzip -q $LAST_FILE bin/libgnurx-0.dll -d $DIST_DIR
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_autotools() {
|
|
|
|
|
setup Autotools
|
|
|
|
|
mkdir -p $DIST_UDIR/bin
|
|
|
|
|
cp -a $_AUTOTOOLS_UDIR/bin/*.dll $DIST_UDIR/bin
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_guile() {
|
|
|
|
|
setup Guile
|
|
|
|
|
mkdir -p $DIST_UDIR/bin
|
|
|
|
|
cp -a $_GUILE_UDIR/bin/libguile{.,-ltdl.,-srfi}*dll $DIST_UDIR/bin
|
|
|
|
|
cp -a $_GUILE_UDIR/bin/guile.exe $DIST_UDIR/bin
|
|
|
|
|
mkdir -p $DIST_UDIR/share
|
|
|
|
|
cp -a $_GUILE_UDIR/share/guile $DIST_UDIR/share
|
|
|
|
|
[ -f $DIST_UDIR/share/guile/1.6/slibcat ] && rm $DIST_UDIR/share/guile/1.6/slibcat
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_openssl() {
|
|
|
|
|
setup OpenSSL
|
|
|
|
|
_OPENSSL_UDIR=`unix_path $OPENSSL_DIR`
|
|
|
|
|
mkdir -p $DIST_UDIR/bin
|
|
|
|
|
cp -a $_OPENSSL_UDIR/bin/*.dll $DIST_UDIR/bin
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_gnome() {
|
|
|
|
|
setup Gnome platform
|
|
|
|
|
wget_unpacked $LIBXML2_URL $DOWNLOAD_DIR $DIST_DIR
|
Win32: Update package versions.
Update to gettext 0.17, glib 2.14.4, cairo 1.4.10, fontconfig
2.4.2-tml-20071015, atk 1.20.0, pango 1.18.3, gtk+ 2.12.3, orbit2
2.14.10, gail 1.20.1, libbonobo 2.20.1, gnome-vfs 2.18.0.1, libgnome
2.20.1, libgnomecanvas 2.20.1, libbonoboui 2.20.0, libglade 2.6.2 and
goffice 0.4.3.
Gettext installs translations to $prefix\lib\locale now, but not all
gnome packages have been rebuilt yet.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16646 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-15 17:34:26 +00:00
|
|
|
wget_unpacked $GETTEXT_RUNTIME_URL $DOWNLOAD_DIR $DIST_DIR
|
2007-05-26 22:23:49 +00:00
|
|
|
smart_wget $LIBICONV_URL $DOWNLOAD_DIR
|
|
|
|
|
unzip -q $LAST_FILE bin/iconv.dll -d $DIST_DIR
|
|
|
|
|
wget_unpacked $GLIB_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $LIBJPEG_URL $DOWNLOAD_DIR $DIST_DIR
|
[Win32] Update a whole bunch of packages.
* MinGW tools
* Autotools (ac 2.60, am 1.10.2, lt 2.2.6a)
- libtool feels faster, needs confirmation
- compiling ac needs a newer m4 version, add that
* Gnome
- intltool needs a newer perl, so upgrade to activeperl 5.10
- new libpng, separated into libpng and libpng-dev
- newly packaged zlib (zlib-dev as well), no dlltool'ing anymore
- remove libgnomeprint (cf. goffice), gtkprint finally seems to work
-> goodbye mirrored printouts
* libxslt
- not the newest because that will be moved to oldreleases/ soon
* openssl
- watch for libeay32.dll in your Windows folder, it might be too old,
better you remove it completely
* gmp
- untested, no BP needed (yet)
* gnutls
- untested, no BP needed (yet)
* swig
* pcre
* libgsf, goffice
- goffice does not use libgnomeprint anymore, new patch necessary,
grab gtk-doc.m4 from gtk-doc tarball instead of patching goffice
- install htmlhelp earlier and add flags to link to it
* svn
- includes an own libeay32.dll, may conflict with openssl/bin/libeay32.dll
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17806 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 15:37:26 +00:00
|
|
|
wget_unpacked $LIBPNG_URL $DOWNLOAD_DIR $DIST_DIR
|
2007-12-15 22:30:51 +00:00
|
|
|
wget_unpacked $LIBTIFF_URL $DOWNLOAD_DIR $DIST_DIR
|
[Win32] Update a whole bunch of packages.
* MinGW tools
* Autotools (ac 2.60, am 1.10.2, lt 2.2.6a)
- libtool feels faster, needs confirmation
- compiling ac needs a newer m4 version, add that
* Gnome
- intltool needs a newer perl, so upgrade to activeperl 5.10
- new libpng, separated into libpng and libpng-dev
- newly packaged zlib (zlib-dev as well), no dlltool'ing anymore
- remove libgnomeprint (cf. goffice), gtkprint finally seems to work
-> goodbye mirrored printouts
* libxslt
- not the newest because that will be moved to oldreleases/ soon
* openssl
- watch for libeay32.dll in your Windows folder, it might be too old,
better you remove it completely
* gmp
- untested, no BP needed (yet)
* gnutls
- untested, no BP needed (yet)
* swig
* pcre
* libgsf, goffice
- goffice does not use libgnomeprint anymore, new patch necessary,
grab gtk-doc.m4 from gtk-doc tarball instead of patching goffice
- install htmlhelp earlier and add flags to link to it
* svn
- includes an own libeay32.dll, may conflict with openssl/bin/libeay32.dll
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17806 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 15:37:26 +00:00
|
|
|
wget_unpacked $ZLIB_URL $DOWNLOAD_DIR $DIST_DIR
|
2007-05-26 22:23:49 +00:00
|
|
|
wget_unpacked $CAIRO_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $EXPAT_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $FONTCONFIG_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $FREETYPE_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $ATK_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $PANGO_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $LIBART_LGPL_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $GTK_URL $DOWNLOAD_DIR $DIST_DIR
|
2007-07-20 21:59:16 +00:00
|
|
|
cp $DIST_DIR/share/themes/MS-Windows/gtk-2.0/gtkrc $DIST_DIR/etc/gtk-2.0
|
2007-05-26 22:23:49 +00:00
|
|
|
wget_unpacked $ORBIT2_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $GAIL_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $POPT_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $GCONF_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $LIBBONOBO_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $GNOME_VFS_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $LIBGNOME_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $LIBGNOMECANVAS_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $LIBBONOBOUI_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $LIBGNOMEUI_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
wget_unpacked $LIBGLADE_URL $DOWNLOAD_DIR $DIST_DIR
|
2009-05-13 00:58:08 +00:00
|
|
|
wget_unpacked $PIXMAN_URL $DOWNLOAD_DIR $DIST_DIR
|
2007-05-26 22:23:49 +00:00
|
|
|
wget_unpacked $GTKHTML_URL $DOWNLOAD_DIR $DIST_DIR
|
|
|
|
|
rm -rf $DIST_UDIR/etc/gconf/gconf.xml.defaults/{desktop,schemas}
|
Win32: Update package versions.
Update to gettext 0.17, glib 2.14.4, cairo 1.4.10, fontconfig
2.4.2-tml-20071015, atk 1.20.0, pango 1.18.3, gtk+ 2.12.3, orbit2
2.14.10, gail 1.20.1, libbonobo 2.20.1, gnome-vfs 2.18.0.1, libgnome
2.20.1, libgnomecanvas 2.20.1, libbonoboui 2.20.0, libglade 2.6.2 and
goffice 0.4.3.
Gettext installs translations to $prefix\lib\locale now, but not all
gnome packages have been rebuilt yet.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16646 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-15 17:34:26 +00:00
|
|
|
cp -a $DIST_UDIR/lib/locale $DIST_UDIR/share
|
|
|
|
|
rm -rf $DIST_UDIR/lib/locale
|
2007-05-26 22:23:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_pcre() {
|
|
|
|
|
setup pcre
|
|
|
|
|
mkdir -p $DIST_UDIR/bin
|
|
|
|
|
cp -a $_PCRE_UDIR/bin/pcre3.dll $DIST_UDIR/bin
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_libgsf() {
|
|
|
|
|
setup libGSF
|
|
|
|
|
mkdir -p $DIST_UDIR/bin
|
|
|
|
|
cp -a $_LIBGSF_UDIR/bin/libgsf*.dll $DIST_UDIR/bin
|
Win32: Update package versions.
Update to gettext 0.17, glib 2.14.4, cairo 1.4.10, fontconfig
2.4.2-tml-20071015, atk 1.20.0, pango 1.18.3, gtk+ 2.12.3, orbit2
2.14.10, gail 1.20.1, libbonobo 2.20.1, gnome-vfs 2.18.0.1, libgnome
2.20.1, libgnomecanvas 2.20.1, libbonoboui 2.20.0, libglade 2.6.2 and
goffice 0.4.3.
Gettext installs translations to $prefix\lib\locale now, but not all
gnome packages have been rebuilt yet.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16646 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-15 17:34:26 +00:00
|
|
|
mkdir -p $DIST_UDIR/share
|
|
|
|
|
cp -a $_LIBGSF_UDIR/share/locale $DIST_UDIR/lib
|
2007-05-26 22:23:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_goffice() {
|
|
|
|
|
setup GOffice
|
|
|
|
|
mkdir -p $DIST_UDIR/bin
|
|
|
|
|
cp -a $_GOFFICE_UDIR/bin/libgoffice*.dll $DIST_UDIR/bin
|
|
|
|
|
mkdir -p $DIST_UDIR/lib
|
Win32: Update package versions.
Update to gettext 0.17, glib 2.14.4, cairo 1.4.10, fontconfig
2.4.2-tml-20071015, atk 1.20.0, pango 1.18.3, gtk+ 2.12.3, orbit2
2.14.10, gail 1.20.1, libbonobo 2.20.1, gnome-vfs 2.18.0.1, libgnome
2.20.1, libgnomecanvas 2.20.1, libbonoboui 2.20.0, libglade 2.6.2 and
goffice 0.4.3.
Gettext installs translations to $prefix\lib\locale now, but not all
gnome packages have been rebuilt yet.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16646 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-15 17:34:26 +00:00
|
|
|
cp -a $_GOFFICE_UDIR/lib/goffice $DIST_UDIR/lib
|
2007-05-26 22:23:49 +00:00
|
|
|
mkdir -p $DIST_UDIR/share
|
Win32: Update package versions.
Update to gettext 0.17, glib 2.14.4, cairo 1.4.10, fontconfig
2.4.2-tml-20071015, atk 1.20.0, pango 1.18.3, gtk+ 2.12.3, orbit2
2.14.10, gail 1.20.1, libbonobo 2.20.1, gnome-vfs 2.18.0.1, libgnome
2.20.1, libgnomecanvas 2.20.1, libbonoboui 2.20.0, libglade 2.6.2 and
goffice 0.4.3.
Gettext installs translations to $prefix\lib\locale now, but not all
gnome packages have been rebuilt yet.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16646 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-15 17:34:26 +00:00
|
|
|
cp -a $_GOFFICE_UDIR/share/{goffice,locale,pixmaps} $DIST_UDIR/share
|
2007-05-26 22:23:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_libofx() {
|
|
|
|
|
setup OpenSP and LibOFX
|
|
|
|
|
cp -a ${_OPENSP_UDIR}/bin/*.dll ${DIST_UDIR}/bin
|
|
|
|
|
cp -a ${_OPENSP_UDIR}/share/OpenSP ${DIST_UDIR}/share
|
|
|
|
|
cp -a ${_LIBOFX_UDIR}/bin/*.dll ${DIST_UDIR}/bin
|
|
|
|
|
cp -a ${_LIBOFX_UDIR}/bin/*.exe ${DIST_UDIR}/bin
|
|
|
|
|
cp -a ${_LIBOFX_UDIR}/share/libofx ${DIST_UDIR}/share
|
|
|
|
|
}
|
|
|
|
|
|
2008-09-30 21:50:11 +00:00
|
|
|
function dist_gnutls() {
|
|
|
|
|
setup gnutls
|
|
|
|
|
cp -a ${_GNUTLS_UDIR}/bin/*.dll ${DIST_UDIR}/bin
|
|
|
|
|
cp -a ${_GNUTLS_UDIR}/bin/*.exe ${DIST_UDIR}/bin
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_gmp() {
|
|
|
|
|
setup gmp
|
|
|
|
|
cp -a ${_GMP_UDIR}/bin/*.dll ${DIST_UDIR}/bin
|
|
|
|
|
}
|
|
|
|
|
|
2007-05-26 22:23:49 +00:00
|
|
|
function dist_gwenhywfar() {
|
|
|
|
|
setup gwenhywfar
|
|
|
|
|
cp -a ${_GWENHYWFAR_UDIR}/bin/*.dll ${DIST_UDIR}/bin
|
|
|
|
|
mkdir -p ${DIST_UDIR}/etc
|
2008-09-30 21:50:11 +00:00
|
|
|
if [ "$AQBANKING3" != "yes" ]; then
|
|
|
|
|
cp -a ${_GWENHYWFAR_UDIR}/etc/* ${DIST_UDIR}/etc
|
|
|
|
|
fi
|
2007-05-26 22:23:49 +00:00
|
|
|
cp -a ${_GWENHYWFAR_UDIR}/lib/gwenhywfar ${DIST_UDIR}/lib
|
2009-09-22 21:23:59 +00:00
|
|
|
mkdir -p ${DIST_UDIR}/share/gwenhywfar
|
|
|
|
|
cp -a ${_GWENHYWFAR_UDIR}/share/gwenhywfar/ca-bundle.crt ${DIST_UDIR}/share/gwenhywfar
|
2007-05-26 22:23:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_ktoblzcheck() {
|
|
|
|
|
setup ktoblzcheck
|
|
|
|
|
# dll is already copied in dist_gwenhywfar
|
|
|
|
|
cp -a ${_GWENHYWFAR_UDIR}/share/ktoblzcheck ${DIST_UDIR}/share
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dist_aqbanking() {
|
|
|
|
|
setup aqbanking
|
|
|
|
|
cp -a ${_AQBANKING_UDIR}/bin/*.exe ${DIST_UDIR}/bin
|
|
|
|
|
cp -a ${_AQBANKING_UDIR}/bin/*.dll ${DIST_UDIR}/bin
|
|
|
|
|
cp -a ${_AQBANKING_UDIR}/lib/aqbanking ${DIST_UDIR}/lib
|
|
|
|
|
cp -a ${_AQBANKING_UDIR}/share/aqbanking ${DIST_UDIR}/share
|
2008-09-30 21:50:11 +00:00
|
|
|
if [ "$AQBANKING3" != "yes" ]; then
|
|
|
|
|
cp -a ${_AQBANKING_UDIR}/share/aqhbci ${DIST_UDIR}/share
|
|
|
|
|
fi
|
2007-06-20 21:46:33 +00:00
|
|
|
cp -a ${_AQBANKING_UDIR}/share/locale ${DIST_UDIR}/lib
|
2007-05-26 22:23:49 +00:00
|
|
|
}
|
|
|
|
|
|
2008-08-20 12:09:10 +00:00
|
|
|
function dist_libdbi() {
|
|
|
|
|
setup LibDBI
|
|
|
|
|
cp -a ${_SQLITE3_UDIR}/bin/* ${DIST_UDIR}/bin
|
|
|
|
|
cp -a ${_SQLITE3_UDIR}/lib/* ${DIST_UDIR}/lib
|
2009-06-29 21:10:21 +00:00
|
|
|
cp -a ${_MYSQL_LIB_UDIR}/bin/* ${DIST_UDIR}/bin
|
|
|
|
|
cp -a ${_MYSQL_LIB_UDIR}/lib/* ${DIST_UDIR}/lib
|
2009-10-04 20:25:43 +00:00
|
|
|
cp -a ${_PGSQL_UDIR}/bin/* ${DIST_UDIR}/bin
|
|
|
|
|
cp -a ${_PGSQL_UDIR}/lib/* ${DIST_UDIR}/lib
|
2008-08-20 12:09:10 +00:00
|
|
|
cp -a ${_LIBDBI_UDIR}/bin/* ${DIST_UDIR}/bin
|
|
|
|
|
cp -a ${_LIBDBI_UDIR}/lib/* ${DIST_UDIR}/lib
|
|
|
|
|
mkdir ${DIST_UDIR}/lib/dbd
|
|
|
|
|
cp -a ${_LIBDBI_DRIVERS_UDIR}/lib/dbd/* ${DIST_UDIR}/lib/dbd
|
|
|
|
|
}
|
|
|
|
|
|
2009-05-13 00:58:08 +00:00
|
|
|
function dist_webkit() {
|
|
|
|
|
setup WebKit
|
|
|
|
|
cp -a ${_WEBKIT_UDIR}/bin/* ${DIST_UDIR}/bin
|
2008-08-01 16:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
2007-05-26 22:23:49 +00:00
|
|
|
function dist_gnucash() {
|
|
|
|
|
setup GnuCash
|
|
|
|
|
mkdir -p $DIST_UDIR/bin
|
|
|
|
|
cp -a $_INSTALL_UDIR/bin/* $DIST_UDIR/bin
|
|
|
|
|
mkdir -p $DIST_UDIR/etc/gconf/schemas
|
|
|
|
|
cp -a $_INSTALL_UDIR/etc/gconf/schemas/* $DIST_UDIR/etc/gconf/schemas
|
|
|
|
|
mkdir -p $DIST_UDIR/lib
|
|
|
|
|
cp -a $_INSTALL_UDIR/lib/lib*.la $DIST_UDIR/lib
|
|
|
|
|
mkdir -p $DIST_UDIR/lib/gnucash
|
|
|
|
|
cp -a $_INSTALL_UDIR/lib/gnucash/lib*.dll $DIST_UDIR/lib/gnucash
|
|
|
|
|
cp -a $_INSTALL_UDIR/libexec $DIST_UDIR
|
|
|
|
|
mkdir -p $DIST_UDIR/share
|
2007-12-19 18:07:31 +00:00
|
|
|
cp -a $_INSTALL_UDIR/share/{gnucash,locale,xml} $DIST_UDIR/share
|
2009-02-08 13:02:56 +00:00
|
|
|
cp -a $_REPOS_UDIR/packaging/win32/install-fq-mods.cmd $DIST_UDIR/bin
|
2007-07-20 21:59:19 +00:00
|
|
|
|
|
|
|
|
_QTDIR_WIN=`echo $QTDIR | sed 's,^/\([A-Za-z]\)/,\1:/,g' `
|
2009-12-13 21:16:25 +00:00
|
|
|
_AQBANKING_SO_EFFECTIVE=$(awk '/AQBANKING_SO_EFFECTIVE/ { print $3 }' ${_AQBANKING_UDIR}/include/aqbanking/version.h )
|
2009-12-15 20:30:15 +00:00
|
|
|
_GWENHYWFAR_SO_EFFECTIVE=$(awk '/GWENHYWFAR_SO_EFFECTIVE/ { print $3 }' ${_GWENHYWFAR_UDIR}/include/gwenhywfar3/gwenhywfar/version.h )
|
2007-07-20 21:59:19 +00:00
|
|
|
sed < $_BUILD_UDIR/packaging/win32/gnucash.iss \
|
|
|
|
|
> $_GNUCASH_UDIR/gnucash.iss \
|
2009-12-11 19:57:17 +00:00
|
|
|
-e "s#@-qtbindir-@#${_QTDIR_WIN}/bin#g" \
|
|
|
|
|
-e "s#@-aqbanking_so_effective-@#${_AQBANKING_SO_EFFECTIVE}#g"
|
2007-05-26 22:23:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function finish() {
|
|
|
|
|
for file in $DIST_UDIR/etc/gconf/schemas/*.schemas; do
|
|
|
|
|
echo -n "Installing $file ... "
|
|
|
|
|
gconftool-2 \
|
|
|
|
|
--config-source=xml:merged:${DIST_WFSDIR}/etc/gconf/gconf.xml.defaults \
|
|
|
|
|
--install-schema-file $file >/dev/null
|
|
|
|
|
echo "done"
|
|
|
|
|
done
|
|
|
|
|
gconftool-2 --shutdown
|
|
|
|
|
|
2007-07-08 13:12:37 +00:00
|
|
|
mv $DIST_UDIR/libexec/gconfd-2.exe $DIST_UDIR/bin
|
|
|
|
|
exetype $DIST_UDIR/bin/gconfd-2.exe windows
|
2008-12-14 03:10:54 +00:00
|
|
|
cp $_INSTALL_UDIR/bin/redirect.exe $DIST_UDIR/libexec/gconfd-2.exe
|
2007-07-08 13:12:37 +00:00
|
|
|
|
|
|
|
|
if [ "$AQBANKING_WITH_QT" = "yes" ]; then
|
2009-10-16 19:53:57 +00:00
|
|
|
assert_one_dir ${DIST_UDIR}/lib/aqbanking/plugins/*/wizards
|
2009-09-22 21:38:31 +00:00
|
|
|
_qt3_wizard_path=`ls ${DIST_UDIR}/lib/aqbanking/plugins/*/wizards/qt3-wizard.exe`
|
|
|
|
|
mv ${_qt3_wizard_path} $DIST_UDIR/bin
|
|
|
|
|
cp $_INSTALL_UDIR/bin/redirect.exe ${_qt3_wizard_path}
|
2007-07-08 13:12:37 +00:00
|
|
|
fi
|
2007-05-26 22:23:49 +00:00
|
|
|
|
|
|
|
|
# Strip redirections in distributed libtool .la files
|
|
|
|
|
for file in $DIST_UDIR/lib/*.la; do
|
|
|
|
|
cat $file | sed 's,^libdir=,#libdir=,' > $file.new
|
|
|
|
|
mv $file.new $file
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
echo "Now running the Inno Setup Compiler for creating the setup.exe"
|
2009-12-08 20:42:46 +00:00
|
|
|
${_INNO_UDIR}/iscc //Q ${_GNUCASH_UDIR}/gnucash.iss
|
2007-05-26 22:23:49 +00:00
|
|
|
|
|
|
|
|
if [ "$BUILD_FROM_TARBALL" = "no" ]; then
|
|
|
|
|
# And changing output filename
|
|
|
|
|
PKG_VERSION=`grep PACKAGE_VERSION ${_BUILD_UDIR}/config.h | cut -d" " -f3 | cut -d\" -f2 `
|
|
|
|
|
SVN_REV=`grep GNUCASH_SVN_REV ${_BUILD_UDIR}/src/gnome-utils/gnc-svninfo.h | cut -d" " -f3 | cut -d\" -f2 `
|
|
|
|
|
SETUP_FILENAME="gnucash-${PKG_VERSION}-svn-r${SVN_REV}-setup.exe"
|
|
|
|
|
qpushd ${_GNUCASH_UDIR}
|
|
|
|
|
mv gnucash-${PKG_VERSION}-setup.exe ${SETUP_FILENAME}
|
|
|
|
|
qpopd
|
|
|
|
|
echo "Final resulting Setup program is:"
|
|
|
|
|
echo ${_GNUCASH_UDIR}/${SETUP_FILENAME}
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
prepare
|
|
|
|
|
dist_regex
|
|
|
|
|
dist_autotools
|
|
|
|
|
dist_guile
|
|
|
|
|
dist_gnome
|
|
|
|
|
dist_pcre
|
|
|
|
|
dist_libgsf
|
|
|
|
|
dist_goffice
|
|
|
|
|
dist_libofx
|
2008-09-30 21:50:11 +00:00
|
|
|
if [ "$AQBANKING3" != "yes" ]; then
|
|
|
|
|
dist_openssl
|
|
|
|
|
else
|
|
|
|
|
dist_gnutls
|
|
|
|
|
dist_gmp
|
|
|
|
|
fi
|
2007-05-26 22:23:49 +00:00
|
|
|
dist_gwenhywfar
|
2009-09-25 19:43:22 +00:00
|
|
|
dist_ktoblzcheck
|
2007-05-26 22:23:49 +00:00
|
|
|
dist_aqbanking
|
2008-08-20 12:09:10 +00:00
|
|
|
dist_libdbi
|
2009-05-13 00:58:08 +00:00
|
|
|
dist_webkit
|
2007-05-26 22:23:49 +00:00
|
|
|
dist_gnucash
|
|
|
|
|
finish
|
|
|
|
|
qpopd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Local Variables: ***
|
|
|
|
|
### sh-basic-offset: 4 ***
|
|
|
|
|
### indent-tabs-mode: nil ***
|
|
|
|
|
### End: ***
|