Ga naar de meest recente revisie | Blame | Vergelijk met vorige | Laatste wijziging | Toon Log | Download | RSS feed
#!/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 signaal_4.0_FreeBSD_x86_64 subdirectory
--exclude-subdir exclude the signaal_4.0_FreeBSD_x86_64 subdirectory
EOF
exit 1
}
cpack_echo_exit()
{
echo $1
exit 1
}
# Display version
cpack_version()
{
echo "signaal Installer Version: 4.0, Copyright (c) Hogeschool van Arnhem en Nijmegen"
}
# 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____'
Copyright 2007-2012 ir drs E.J Boks
opleiding Embedded Systems Engineering (ESE)
Hogeschool van Arnhem en Nijmegen
Arnhem, Nederland
http://www.hanese.nl
email:ewout.boks@han.nl
telefoon:026-3658181
____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 signaal will be installed in:"
echo " \"${toplevel}/signaal_4.0_FreeBSD_x86_64\""
echo "Do you want to include the subdirectory signaal_4.0_FreeBSD_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}/signaal_4.0_FreeBSD_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 +151 "$0" | gunzip | (cd "${toplevel}" && tar xf -) || cpack_echo_exit "Problem unpacking the signaal_4.0_FreeBSD_x86_64"
echo "Unpacking finished successfully"
exit 0
#-----------------------------------------------------------
# Start of TAR.GZ file
#-----------------------------------------------------------;
nU Ô½y`Åö?}Ê" T(È*I÷*`·*¥
mYÚ´IÛ@Ä&-QË"B-¨¨¢"âÆEAÄ
Qq¹,;WQsÎs&9óô âû½÷·÷>Îóùd2Ï3gÎ'¸<û]å»Ýmú_ýÍæ¤&%Y,&Æ'Aj6[ÌñI qI1Øsb%6>6)Æl·bÌÿ³±¿jÀ^%ªâé#Ã[êôpñ/&þÿäïFkNVdDD+#M#L"»$
q*ñ'6 ~'Õlj)þÛÓÔÃÔ\àf,_*ÝÉtgII[R>(©ö@zpª^H´L#XÚL UIÝÖ&Jj2Å¿uõï³*é÷íµÜ«ÆïEÒ÷6Ò÷6R~Ú¨þ2ò5¥«ñÝH.JÝ6³üXο¸?~Fûâñ3éJº¦
IIå÷Æï57ÿ¬çånW³ÖYz¹ÛqÓ]6ÔïjCÙÐnYUNgzA¦iÀ¨öA>ñð×JÄUzF½¸Oºô¸(èiÎ×MâÞ.®)ßJqHåØEéÛTÖÂGŵQpÏü©"½>_ p[i¼àî×PwöïÐ÷ ü÷4]äí,®Q;^My®£<¿ÏÞW¶¸øvúüMú¼½HGÏöëVq#Ò=ÿ·¸W®½g¼ÿé`Âo ¼M\÷<O¤]Dz¥¸k¶ø¼WD¨rñy¸üâzRð£÷¸NÜO÷?PÞ,æk¡¸·´Èó +g´Ý¿*®UôÙûâºê$.³à¾aßÙ,îóAn&S@ m'>.ðHqÿ¶HR½FéqÍ×µO\Ï2|(ã ZDºM¤K Å÷«EºGpëq?éµâê..´½¸îyÖP9@]Ä5U\þZ¤·ïÝG²ìi¸ûÖ"ý}¯XÜ/ù²ÄýXq=%ðËÐ'âÚ$ðLX{À_¸î Ë©ûü;Ëijô£¹5Ý?¦ûìB*g³øÞ
îWàFô'þ%®Dqÿq]Cß{]ðEô¬Ä\GÁ½(®ÑôÙBÁ×âê+ðVq}$î£ÅçôúîuâºDàwEúq}E]"Ý$ÒoDú¸ºû×Eºê]÷ £"ýZp[Å}¥H¿¥Ï½ÐâºKÜÜEâªyÄu§¸IÏzJä±+µßXq_*òéU¯×ͽÊézÆH&Ñwî×@qW¸^W7Êw¸`Ú ýDù«N¿E¤Áï&>OpßÓý¬¿n|3qígüãŵl¸þ÷«E
æº7åOxH"}Æ*Ø)ªÏ
âú¸oú-îïW¸'ÒK#C³üÅA[PÛ´'®'{µÛAJ_¦ôCqý¢Ó×ËÅ5Tp7Mà,*çqÿ¦¸^Gp.úþ÷«X0öùþ}ÖlH;I»(®é³/)ýL|öÈ×_\ë«÷yôGEz
Õm+Üý÷=Ü ®«¸À¹¾·êvC\@ßô
Áû}â'®e?LùÚü¾T¤ô[Á}'®¸òõé1ÎW,##Äõ»¸_¤ýD:ô]ܯ¤úÍ÷;èû½¨ÞsE:î_×0Ïy]¬Þ|àÊÅý^ʳS\¯mø'qCüDËô¬LÁµ1cO\ûÄågý³T|vÀÿ>gÏ{Ê-û!îûõ`wèó§ÅµA\ĵ^|¶æcqÿ}ÞÄÀë/2"ügêð"ï]ùõkæûýÅg"ÿ*q½GÏi§{ÞÚ0Ï¿Ý75Îbzú^ÇýÓ5MÌß´Wµøüs^ã{
É¥=·M'£9Y÷ìsU¥£¸¦P¯`"þ,¥E0Åçâ²ëjÊûµ¸ÖÀ\©ù?²ºø(OH~Ì#ôÙ]8I¤K®÷·+>?ó~æÎ »DüDqÝ~{Î}¶"n¸æût2~%®Îâª=,ÒâFµe¡ûïa2h¬(½ê&Ò6"½¸§ÄÕ\|gáâzXà3"ÏãâjOu»ÊýM\±¬l7{^Sݳ£Á~4l¸òØg»¨Ü_Y{´
9ÊøàéÊ{l¸>