1 # Copyright (c) 2007 David Kocher. All rights reserved.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # Bug fixes, suggestions and comments should be sent to:
15 # dkocher@cyberduck.ch
21 echo " Usage: debug.sh [--enable | -e] [--disable | -d]"
26 # When enabled, you can connect to the running application using
27 # -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
28 cp setup
/app
/Info.plist.debug build
/Cyberduck.app
/Contents
/Info.plist
;
32 cp setup
/app
/Info.plist build
/Cyberduck.app
/Contents
/Info.plist
;
35 while [ "$1" != "" ] # When there are arguments...
38 echo "Enabling debug configuration...";
44 echo "Disabling debug configuration...";
50 echo "Option [$1] not one of [--enable, --disable]"; # Error (!)