GUIScript: Make Setup*Icons functions take a dict to get the callbacks from.
[gemrb.git] / admin / setup.sh
blobef44c6c4a055908c600028117b059ad07bc823cd
1 #!/bin/bash
2 # GemRB - Infinity Engine Emulator
3 # Copyright (C) 2003 The GemRB Project
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 # This is a quick and dirty script to pass reasonable values to the
21 # configure script. This script compensates for the fact that GemRB
22 # expects certain files to be in paths relative to GemRB.
24 if [ "$1" = "" ]; then
25 echo "Usage: $0 [installation directory]";
26 echo "Example: $0 $HOME/GemRB"
27 exit 1
28 else
29 cmd="sh configure --prefix=$1/ --bindir=$1/ --sysconfdir=$1/ --datadir=$1/ --libdir=$1/plugins/ --disable-subdirs"
30 $cmd
31 echo
32 echo "Configure was invoked as: $cmd"