Ticket #28806: patch-qgle-destdir.diff

File patch-qgle-destdir.diff, 864 bytes (added by jdswinbank (John Swinbank), 14 years ago)
  • platform/script/install_qgle_mac

    diff --git platform/script/install_qgle_mac platform/script/install_qgle_mac
    index c6747ab..f1bd364 100755
     
    3838
    3939#!/bin/sh
    4040
    41 touch /Applications/qgle.check 2>/dev/null
    42 QGLEDIR=
    43 if test -f /Applications/qgle.check; then
    44         QGLEDIR=/Applications
    45 else
    46         mkdir -p ~/Applications
    47         QGLEDIR=~/Applications
    48 fi
    49 rm -f /Applications/qgle.check 2>/dev/null
    50 rm -rf $QGLEDIR/QGLE.app
    51 cp -r ./build/bin/QGLE.app $QGLEDIR/
     41mkdir -p $DESTDIR$QGLEDIR 2>/dev/null
     42cp -r ./build/bin/QGLE.app $DESTDIR$QGLEDIR/
    5243
    5344echo ""
    5445echo "****************************************************************"
    55 echo "QGLE has been installed in: $QGLEDIR/QGLE.app"
     46echo "QGLE has been installed in: $DESTDIR$QGLEDIR/QGLE.app"
    5647echo "****************************************************************"