From 066b651357d5849c7b372c5657075cbb518e8791 Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Fri, 20 Oct 2006 17:51:02 +0000 Subject: [PATCH] Use "passive FTP" with wget, to allow building behind a firewall Create a 'reset' script to allow resetting the win32 build environment. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15048 57a11ea4-9604-0410-9ed3-97b8803252fd --- packaging/win32/install.sh | 2 +- packaging/win32/reset.sh | 47 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 packaging/win32/reset.sh diff --git a/packaging/win32/install.sh b/packaging/win32/install.sh index 6d8321a8b6..76069aacce 100644 --- a/packaging/win32/install.sh +++ b/packaging/win32/install.sh @@ -104,7 +104,7 @@ function smart_wget() { # download the file to the tmpdir and then when that completes # move it to the dest dir. if [ ! -f $_DLD/$_FILE ] ; then - wget -c $1 -P $TMP_DIR + wget --passive-ftp -c $1 -P $TMP_DIR mv $TMP_UDIR/$_FILE $_DLD fi LAST_FILE=$_DLD/$_FILE diff --git a/packaging/win32/reset.sh b/packaging/win32/reset.sh new file mode 100644 index 0000000000..5f39d7d41b --- /dev/null +++ b/packaging/win32/reset.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +set -e + +echo "" +echo "This will reset your installation of gnucash." +echo -n "Are you sure you want to do this? [y/N] " +read resp +case "$resp" in + y*|Y*) + ;; + *) + exit 0; + ;; +esac + +#### Load Custom.sh + +function add_step() { } +function qpushd() { pushd "$@" >/dev/null; } +function qpopd() { popd >/dev/null; } + +# /c/dir/sub +function unix_path() { + echo "$*" | sed 's,^\([A-Za-z]\):,/\1,;s,\\,/,g' +} + +qpushd "$(dirname $(unix_path "$0"))" +. custom.sh + +#### Now clear out the install + +basedir=`unix_path $GLOBAL_DIR` +qpushd $basedir + +rm -rf regex readline indent guile pexports gnome swig autotools +rm -rf libgsf goffice glade gnucash + +rm -f /etc/profile.d/installer.in + +echo "Done" +exit 0 + +### Local Variables: *** +### sh-basic-offset: 4 *** +### tab-width: 8 *** +### End: ***