mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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
This commit is contained in:
parent
cc8d0c9163
commit
066b651357
@ -104,7 +104,7 @@ function smart_wget() {
|
|||||||
# download the file to the tmpdir and then when that completes
|
# download the file to the tmpdir and then when that completes
|
||||||
# move it to the dest dir.
|
# move it to the dest dir.
|
||||||
if [ ! -f $_DLD/$_FILE ] ; then
|
if [ ! -f $_DLD/$_FILE ] ; then
|
||||||
wget -c $1 -P $TMP_DIR
|
wget --passive-ftp -c $1 -P $TMP_DIR
|
||||||
mv $TMP_UDIR/$_FILE $_DLD
|
mv $TMP_UDIR/$_FILE $_DLD
|
||||||
fi
|
fi
|
||||||
LAST_FILE=$_DLD/$_FILE
|
LAST_FILE=$_DLD/$_FILE
|
||||||
|
47
packaging/win32/reset.sh
Normal file
47
packaging/win32/reset.sh
Normal file
@ -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: ***
|
Loading…
Reference in New Issue
Block a user