2006-09-18 04:50:25 -05:00
|
|
|
#!/bin/sh
|
2010-05-20 03:08:35 -05:00
|
|
|
#
|
|
|
|
# Steps will be executed in the order they were added. They can only be added
|
|
|
|
# at most once if they have not been blocked already (adding implies blocking).
|
|
|
|
# To add a custom step <s>, just implement "function <s>()". Keep in mind that
|
|
|
|
# blocking or reordering may render install.sh & friends non-functional.
|
|
|
|
|
2006-09-18 04:50:25 -05:00
|
|
|
|
2007-05-23 12:21:14 -05:00
|
|
|
[ ! "$BASH" -a -x /bin/bash ] && exec /bin/bash "$0" "$@"
|
|
|
|
|
2006-09-18 04:50:25 -05:00
|
|
|
set -e
|
|
|
|
|
2009-06-14 17:58:06 -05:00
|
|
|
echo -n "Build Starting at "
|
|
|
|
date
|
|
|
|
|
2006-09-18 04:50:25 -05:00
|
|
|
function qpushd() { pushd "$@" >/dev/null; }
|
|
|
|
function qpopd() { popd >/dev/null; }
|
2006-12-15 08:36:45 -06:00
|
|
|
function unix_path() { echo "$*" | sed 's,^\([A-Za-z]\):,/\1,;s,\\,/,g'; }
|
2006-09-18 04:50:25 -05:00
|
|
|
|
|
|
|
qpushd "$(dirname $(unix_path "$0"))"
|
2010-05-03 15:07:49 -05:00
|
|
|
. ./functions.sh
|
|
|
|
. ./defaults.sh
|
2010-05-20 03:08:35 -05:00
|
|
|
. ./install-impl.sh
|
2006-09-18 04:50:25 -05:00
|
|
|
|
2010-05-20 03:08:35 -05:00
|
|
|
# variables
|
2006-12-21 13:19:09 -06:00
|
|
|
register_env_var ACLOCAL_FLAGS " "
|
|
|
|
register_env_var AUTOTOOLS_CPPFLAGS " "
|
|
|
|
register_env_var AUTOTOOLS_LDFLAGS " "
|
2008-09-30 16:50:11 -05:00
|
|
|
register_env_var GMP_CPPFLAGS " "
|
|
|
|
register_env_var GMP_LDFLAGS " "
|
2006-12-21 13:19:09 -06:00
|
|
|
register_env_var GNOME_CPPFLAGS " "
|
|
|
|
register_env_var GNOME_LDFLAGS " "
|
2008-09-30 16:50:11 -05:00
|
|
|
register_env_var GNUTLS_CPPFLAGS " "
|
|
|
|
register_env_var GNUTLS_LDFLAGS " "
|
2006-12-21 13:19:09 -06:00
|
|
|
register_env_var GUILE_LOAD_PATH ";"
|
|
|
|
register_env_var GUILE_CPPFLAGS " "
|
|
|
|
register_env_var GUILE_LDFLAGS " "
|
2007-03-13 19:41:59 -05:00
|
|
|
register_env_var HH_CPPFLAGS " "
|
|
|
|
register_env_var HH_LDFLAGS " "
|
2006-12-21 13:19:09 -06:00
|
|
|
register_env_var INTLTOOL_PERL " "
|
2008-08-17 11:38:31 -05:00
|
|
|
register_env_var LIBDBI_CPPFLAGS " "
|
|
|
|
register_env_var LIBDBI_LDFLAGS " "
|
2007-02-12 04:53:20 -06:00
|
|
|
register_env_var KTOBLZCHECK_CPPFLAGS " "
|
|
|
|
register_env_var KTOBLZCHECK_LDFLAGS " "
|
2006-12-21 13:19:09 -06:00
|
|
|
register_env_var PATH ":"
|
2007-03-10 13:01:37 -06:00
|
|
|
register_env_var PCRE_CPPFLAGS " "
|
|
|
|
register_env_var PCRE_LDFLAGS " "
|
2006-12-21 13:19:09 -06:00
|
|
|
register_env_var PKG_CONFIG ":" ""
|
|
|
|
register_env_var PKG_CONFIG_PATH ":"
|
|
|
|
register_env_var READLINE_CPPFLAGS " "
|
|
|
|
register_env_var READLINE_LDFLAGS " "
|
|
|
|
register_env_var REGEX_CPPFLAGS " "
|
|
|
|
register_env_var REGEX_LDFLAGS " "
|
2009-05-12 19:58:08 -05:00
|
|
|
register_env_var WEBKIT_CFLAGS " "
|
|
|
|
register_env_var WEBKIT_LIBS " "
|
2006-09-18 04:50:25 -05:00
|
|
|
|
2010-05-20 03:08:35 -05:00
|
|
|
# steps
|
|
|
|
# There is no reason to ever need to comment these out!
|
|
|
|
# * commented out glade, as it is not needed to run gnucash
|
|
|
|
add_step inst_prepare
|
|
|
|
if [ "$CROSS_COMPILE" != "yes" ]; then
|
|
|
|
add_step inst_wget
|
|
|
|
add_step inst_dtk
|
|
|
|
add_step inst_unzip
|
2006-11-06 18:23:53 -06:00
|
|
|
fi
|
2010-05-20 03:08:35 -05:00
|
|
|
add_step inst_mingw
|
|
|
|
add_step inst_regex
|
|
|
|
add_step inst_readline
|
|
|
|
if [ "$CROSS_COMPILE" != "yes" ]; then
|
|
|
|
add_step inst_active_perl
|
|
|
|
add_step inst_mingwutils
|
|
|
|
fi
|
|
|
|
add_step inst_autotools
|
2010-09-01 11:24:02 -05:00
|
|
|
add_step inst_gmp
|
2010-05-20 03:08:35 -05:00
|
|
|
add_step inst_guile
|
|
|
|
if [ "$CROSS_COMPILE" != "yes" ]; then
|
|
|
|
add_step inst_svn
|
|
|
|
fi
|
|
|
|
add_step inst_exetype
|
|
|
|
add_step inst_libxslt
|
|
|
|
add_step inst_gnome
|
2010-09-01 11:24:02 -05:00
|
|
|
add_step inst_gnutls
|
2010-07-14 15:22:18 -05:00
|
|
|
add_step inst_isocodes
|
2010-05-20 03:08:35 -05:00
|
|
|
add_step inst_swig
|
|
|
|
add_step inst_pcre
|
|
|
|
add_step inst_libbonoboui
|
|
|
|
add_step inst_libgsf
|
|
|
|
if [ "$CROSS_COMPILE" != "yes" ]; then
|
|
|
|
add_step inst_hh
|
|
|
|
fi
|
|
|
|
add_step inst_goffice
|
|
|
|
#add_step inst_glade
|
|
|
|
add_step inst_opensp
|
|
|
|
add_step inst_libofx
|
|
|
|
## Online banking:
|
|
|
|
add_step inst_gwenhywfar
|
|
|
|
add_step inst_ktoblzcheck
|
|
|
|
add_step inst_aqbanking
|
|
|
|
add_step inst_libdbi
|
|
|
|
add_step inst_webkit
|
|
|
|
##
|
|
|
|
if [ "$UPDATE_SOURCES" = "yes" ]; then
|
|
|
|
add_step svn_up
|
|
|
|
fi
|
|
|
|
if [ "$WITH_CUTECASH" = "yes" ]; then
|
|
|
|
add_step inst_cmake
|
|
|
|
add_step inst_cutecash
|
|
|
|
fi
|
|
|
|
add_step inst_gnucash
|
|
|
|
if [ "$CROSS_COMPILE" != "yes" ]; then
|
|
|
|
add_step inst_inno
|
|
|
|
fi
|
2010-09-21 12:09:42 -05:00
|
|
|
add_step inst_docs
|
2010-05-20 03:08:35 -05:00
|
|
|
add_step inst_finish
|
2007-03-13 19:41:59 -05:00
|
|
|
|
2010-05-20 03:08:35 -05:00
|
|
|
# run commands registered with late_eval
|
|
|
|
eval_now
|
2006-09-18 04:50:25 -05:00
|
|
|
|
|
|
|
for step in "${steps[@]}" ; do
|
|
|
|
eval $step
|
|
|
|
done
|
|
|
|
qpopd
|
|
|
|
|
2009-06-14 17:58:06 -05:00
|
|
|
echo -n "Build Finished at "
|
|
|
|
date
|
2006-09-18 04:50:25 -05:00
|
|
|
|
|
|
|
### Local Variables: ***
|
|
|
|
### sh-basic-offset: 4 ***
|
2007-05-23 12:21:07 -05:00
|
|
|
### indent-tabs-mode: nil ***
|
2006-09-18 04:50:25 -05:00
|
|
|
### End: ***
|