diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2019-07-09 12:45:03 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2019-07-09 12:45:03 (GMT) |
commit | 98617f1be07ecded94085f0aac41284604d3c684 (patch) | |
tree | a46a6e04b4c1a20b6d8611fec3ee3a961b3791b7 /Modules/CPack.RuntimeScript.in | |
parent | e559a3e9900a7c040de2faf36a196b59e82cdd73 (diff) | |
download | CMake-98617f1be07ecded94085f0aac41284604d3c684.zip CMake-98617f1be07ecded94085f0aac41284604d3c684.tar.gz CMake-98617f1be07ecded94085f0aac41284604d3c684.tar.bz2 |
Refactor: Move CPack internal files to `Internal/CPack/` directory
Some commits ago all CPack internal `*.cmake` files have been moved
to `Internal/CPack/`. This commit also move some templates
internally used by generators to the same location to make
`Modules/` directory less noisy w/ files the end users don't
need to use/see.
Diffstat (limited to 'Modules/CPack.RuntimeScript.in')
-rwxr-xr-x | Modules/CPack.RuntimeScript.in | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/Modules/CPack.RuntimeScript.in b/Modules/CPack.RuntimeScript.in deleted file mode 100755 index f27444f..0000000 --- a/Modules/CPack.RuntimeScript.in +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/sh -# -# Modified from: Aaron Voisine <aaron@voisine.org> - -CWD="`dirname \"$0\"`" -TMP=/tmp/$(id -ru)/TemporaryItems - -version=`sw_vers -productVersion` -if [ "$?" = "0" ]; then - major=${version%%\.*} - rest=${version#*\.} - minor=${rest%%\.*} - build=${rest#*\.} -else - major=10 - minor=4 - build=0 -fi - -echo $version -echo "Major = $major" -echo "Minor = $minor" -echo "Build = $build" - - -# if 10.5 or greater, then all the open-x11 stuff need not occur -if [ "$major" -lt 10 ] || ([ "$major" -eq 10 ] && [ "$minor" -lt 5 ]); then -version=`sw_vers -productVersion` -if [ "$?" = "0" ]; then - major=${version%%\.*} - rest=${version#*\.} - minor=${rest%%\.*} - build=${rest#*\.} -else - major=10 - minor=4 - build=0 -fi - -echo $version -echo "Major = $major" -echo "Minor = $minor" -echo "Build = $build" - - -# if 10.5 or greater, then all the open-x11 stuff need not occur -if [ "$major" -lt 10 ] || ([ "$major" -eq 10 ] && [ "$minor" -lt 5 ]); then -ps -wx -ocommand | grep -e '[X]11.app' > /dev/null -if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then - echo "rm -f ~/.xinitrc" > ~/.xinitrc - sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc -fi - -mkdir -p $TMP -cat << __END_OF_GETDISPLAY_SCRIPT__ > "$TMP/getdisplay.sh" -#!/bin/sh -mkdir -p "$TMP" - -if [ "\$DISPLAY"x = "x" ]; then - echo :0 > "$TMP/display" -else - echo \$DISPLAY > "$TMP/display" -fi -__END_OF_GETDISPLAY_SCRIPT__ -fi -chmod +x "$TMP/getdisplay.sh" -rm -f $TMP/display -open-x11 $TMP/getdisplay.sh || \ -open -a XDarwin $TMP/getdisplay.sh || \ -echo ":0" > $TMP/display - -while [ "$?" = "0" -a ! -f $TMP/display ]; -do - #echo "Waiting for display $TMP/display" - sleep 1; -done -export "DISPLAY=`cat $TMP/display`" - -ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11 - -cd ~/ -echo "$@" > /tmp/arguments.log -if echo $1 | grep -- "^-psn_"; then - shift -fi -fi -exec "$CWD/bin/@CPACK_EXECUTABLE_NAME@" "$@" > /tmp/slicer.output 2>&1 |