mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15055 57a11ea4-9604-0410-9ed3-97b8803252fd
48 lines
826 B
Bash
48 lines
826 B
Bash
#!/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() { echo "" >/dev/null; }
|
|
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 tmp
|
|
|
|
rm -f /etc/profile.d/installer.sh
|
|
|
|
echo "Done"
|
|
exit 0
|
|
|
|
### Local Variables: ***
|
|
### sh-basic-offset: 4 ***
|
|
### tab-width: 8 ***
|
|
### End: ***
|