#!/bin/sh
# Display usage
cpack_usage()
{
cat <<EOF
Usage: $0 [options]
Options: [defaults in brackets after descriptions]
--help print this message
--prefix=dir directory in which to install
--include-subdir include the cmake-3.6.3-Linux-x86_64 subdirectory
--exclude-subdir exclude the cmake-3.6.3-Linux-x86_64 subdirectory
EOF
exit 1
}
cpack_echo_exit()
{
echo $1
exit 1
}
# Display version
cpack_version()
{
echo "CMake Installer Version: 3.6.3, Copyright (c) Kitware"
}
# Helper function to fix windows paths.
cpack_fix_slashes ()
{
echo "$1" | sed 's/\\/\//g'
}
interactive=TRUE
cpack_skip_license=FALSE
cpack_include_subdir=""
for a in "$@"; do
if echo $a | grep "^--prefix=" > /dev/null 2> /dev/null; then
cpack_prefix_dir=`echo $a | sed "s/^--prefix=//"`
cpack_prefix_dir=`cpack_fix_slashes "${cpack_prefix_dir}"`
fi
if echo $a | grep "^--help" > /dev/null 2> /dev/null; then
cpack_usage
fi
if echo $a | grep "^--version" > /dev/null 2> /dev/null; then
cpack_version
exit 2
fi
if echo $a | grep "^--include-subdir" > /dev/null 2> /dev/null; then
cpack_include_subdir=TRUE
fi
if echo $a | grep "^--exclude-subdir" > /dev/null 2> /dev/null; then
cpack_include_subdir=FALSE
fi
if echo $a | grep "^--skip-license" > /dev/null 2> /dev/null; then
cpack_skip_license=TRUE
fi
done
if [ "x${cpack_include_subdir}x" != "xx" -o "x${cpack_skip_license}x" = "xTRUEx" ]
then
interactive=FALSE
fi
cpack_version
echo "This is a self-extracting archive."
toplevel="`pwd`"
if [ "x${cpack_prefix_dir}x" != "xx" ]
then
toplevel="${cpack_prefix_dir}"
fi
echo "The archive will be extracted to: ${toplevel}"
if [ "x${interactive}x" = "xTRUEx" ]
then
echo ""
echo "If you want to stop extracting, please press <ctrl-C>."
if [ "x${cpack_skip_license}x" != "xTRUEx" ]
then
more << '____cpack__here_doc____'
CMake - Cross Platform Makefile Generator
Copyright 2000-2016 Kitware, Inc.
Copyright 2000-2011 Insight Software Consortium
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the names of Kitware, Inc., the Insight Software Consortium,
nor the names of their contributors may be used to endorse or promote
products derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
------------------------------------------------------------------------------
The above copyright and license notice applies to distributions of
CMake in source and binary form. Some source files contain additional
notices of original copyright by their contributors; see each source
for details. Third-party software packages supplied with CMake under
compatible licenses provide their own copyright notices documented in
corresponding subdirectories.
------------------------------------------------------------------------------
CMake was initially developed by Kitware with the following sponsorship:
* National Library of Medicine at the National Institutes of Health
as part of the Insight Segmentation and Registration Toolkit (ITK).
* US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
Visualization Initiative.
* National Alliance for Medical Image Computing (NAMIC) is funded by the
National Institutes of Health through the NIH Roadmap for Medical Research,
Grant U54 EB005149.
* Kitware, Inc.
____cpack__here_doc____
echo
echo "Do you accept the license? [yN]: "
read line leftover
case ${line} in
y* | Y*)
cpack_license_accepted=TRUE;;
*)
echo "License not accepted. Exiting ..."
exit 1;;
esac
fi
if [ "x${cpack_include_subdir}x" = "xx" ]
then
echo "By default the CMake will be installed in:"
echo " \"${toplevel}/cmake-3.6.3-Linux-x86_64\""
echo "Do you want to include the subdirectory cmake-3.6.3-Linux-x86_64?"
echo "Saying no will install in: \"${toplevel}\" [Yn]: "
read line leftover
cpack_include_subdir=TRUE
case ${line} in
n* | N*)
cpack_include_subdir=FALSE
esac
fi
fi
if [ "x${cpack_include_subdir}x" = "xTRUEx" ]
then
toplevel="${toplevel}/cmake-3.6.3-Linux-x86_64"
mkdir -p "${toplevel}"
fi
echo
echo "Using target directory: ${toplevel}"
echo "Extracting, please wait..."
echo ""
# take the archive portion of this file and pipe it to tar
# the NUMERIC parameter in this command should be one more
# than the number of lines in this header file
# there are tails which don't understand the "-n" argument, e.g. on SunOS
# OTOH there are tails which complain when not using the "-n" argument (e.g. GNU)
# so at first try to tail some file to see if tail fails if used with "-n"
# if so, don't use "-n"
use_new_tail_syntax="-n"
tail $use_new_tail_syntax +1 "$0" > /dev/null 2> /dev/null || use_new_tail_syntax=""
tail $use_new_tail_syntax +199 "$0" | gunzip | (cd "${toplevel}" && tar xf -) || cpack_echo_exit "Problem unpacking the cmake-3.6.3-Linux-x86_64"
echo "Unpacking finished successfully"
exit 0
#-----------------------------------------------------------
# Start of TAR.GZ file
#-----------------------------------------------------------;
¶DX ì½ý{ÛÆ(¼?Ï_é½ÕR´l'q×qü(DêcoË"A 5pвÚÿý=3(Çm³µZóqæÌó}®ÃäÑüööö}óM ÿ>~öÍÿ¯ý ?ÝÛûöÛ¯<ùö`þxüô?oþÞÃU^Lå}\ÜY´±Ý}ïeößÿ!?×°ÿðß³¿'|ÂþûÍ7_öÿñc÷z¾vgÑh.£¬ýìóðøöë¯7ìÿãÇ{ßì=ýúìñÓ§°ÿÏö?ù`ïóMaóÏ¿ùþ·ÏÁIËð2
.£$ÊÂ"ó,½²hTd«i±Ê¢Ù8úX´
üßøuÐØ?éüÐÝ=è¾éN»ÃFÐxÿõÓÑõE{O[Á½Çß³§íoÛOø`WôG¯~ç¤k*ØïÔ$8°Ñ<Ê¢dá¨Idyñ0u7NfQRì.°a°/gÑc|;iVÙeóóß=ÎÏàkzô³áOða]_ú[?¯i·ñËÍ®Y¹÷sÍÃÇuülÚ²^ÿ ÛÜveMÁ2v0¸:øm
*gXEÍ·Ñ?<Þ0xÏeÁY_ç»ÔûXÞ¤Ù¹q·wynItóÐaù`EdíõÇÃÁÁÙþ¸7èv¾4ã«8IVá"ßâ¤àK80)ÌY16¸¸
,nCótÏoãä2(®"Æs§«YqG9Çé¤7wý?ü!½uÇ402þ{Ã4¸XÅYpWALcÜül^/ã&³ \2³Y°/²0»5ñõr]Cã°Ó$oÁ(½ð«ë4>®õ6HÒ"¸U£$e*If³(3åyä«éL-]L¯Â:U`
³çÏÃUNEFË¡+ ®ÂQçóW¥Îç§ÁÍUýNRù a
&B%Áp±p
Á|L±Ïvmg5µ³<2Ðpzßæ妰"
g²ø¯Ñ¤ ù¿ ³8]åõKíLÀ
/¿Ò9ͺÞÏÿ7ÀþÇ«(1aÇ¢Hå«E!¡~ÐÜÁé@!îN°X}q÷¥É¯Òl¬;flñ¦õË3}ÑÂG«D¾ü¦a3Ç×ñ"Ìâvå«^ÿ(Øö»Áa·3>vGºfDA
(Ë`²ñæÏè æ°eQW´Ê¢à}Þ$Á,
?qÜÉWKüÖÂ]ñt
³ÁÃåtcq/ Ð ¢rhÊ Àí1<ævª¥¡`
9ìDb§Ù¦åá¦ál;"AÒ1µF0haç0Ø )¼I¢içp±Í"ÎËËÃ]Ô>hE°/ëéÍr9á"¬¼etÃÙAËkèÜè§Òe4káú°S¤¾
ùBØÏ
Ü`B{£@\_0M1ÊéFñ]Ú 7uY[~ä°\»3¼QÐØ
9èû1ÙâMñSÔyMÞ¾oË_.³tÅÀíì´ ¨°9e\¥
AtÖwH¯ì /;ý£Ñ¸Ó?è&ÝÃÎÙñ SÇÌv¶*øPEYÈ "4ÞÆÎpögpx½ÅpÙ4ÅwðíÖðþõ
`ES ß>¾å¯á²Çx¡xhÚedhÑeS ܤÙûà"¾y÷ËÚè¦àýд8Y!IÍÂxQή
~WüÊ"<Q¾¥Ap.ñBf:H}À¥O±ÿ8µÂz
·T^>ßÜvä:!:Ø!pGÄ/·2¡ºgQõù¯`ËóçÉÚÎÒé
ï{ãE\ÜʪìjéFE3Ò,³9Ü¡E|
¢qqîÂqg=BÒ@½!ò]d°MºÁáà
øñãxèãR®Ãà¨|Ýþ¶8®.¯Êó]Ö1¯Àí0v¸Wàýl
º
¼àh@Á