1 --- freeride-linux-installer-0.9.6.sh 2006-06-06 12:18:54.000000000 +0200
2 +++ freeride-linux-installer-0.9.6-new.sh 2008-05-07 00:12:44.000000000 +0200
5 -STD_INSTALL_DIR='/usr/local'
8 -echo "FreeRIDE $FREERIDE_VERSION - starting installation..."
12 # determine where the archive starts
13 SKIP=`grep -a -n -s -m 1 -e'^__ARCHIVE_FOLLOWS__' $0 | cut -f1 -d:`
16 -echo "IMPORTANT NOTE"
17 -echo "--------------"
18 -echo "FreeRIDE must be installed in /usr/local/FreeRIDE."
19 -echo "If you want to install it elsewhere a symbolic link will"
20 -echo "be created from /usr/local/FreeRIDE to the chosen location"
23 -read -p "Choose where to install FreeRIDE [$STD_INSTALL_DIR] : " dir
24 -if [ "x$dir" = "x" ]; then
25 - dir=$STD_INSTALL_DIR
28 -if [ -d "$dir/FreeRIDE" ];then
29 - echo "Renaming $dir/FreeRIDE to $dir/FreeRIDE.old"
30 - rm -rf $dir/FreeRIDE.old
31 - mv -f $dir/FreeRIDE $dir/FreeRIDE.old
34 -if [ "$dir" != $STD_INSTALL_DIR ]; then
35 - ln -sf $dir/FreeRIDE /usr/local 2>&1 >/dev/null
36 - if [ $? -eq 1 ]; then
37 - echo "Can't create $dir/FreeRIDE symbolic link. Make sure you have the appropriate permissions"
38 - echo "Exiting installation"
44 mkdir -p $dir/FreeRIDE 2>&1 >/dev/null