403Webshell
Server IP : 51.89.169.208  /  Your IP : 216.73.216.52
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/cmake/Modules/Internal/CPack/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/cmake/Modules/Internal/CPack/CPack.RuntimeScript.in
#!/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

Youez - 2016 - github.com/yon3zu
LinuXploit