Ga naar de meest recente revisie | Blame | 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 filter_4.0_FreeBSD_amd64 subdirectory
--exclude-subdir exclude the filter_4.0_FreeBSD_amd64 subdirectory
EOF
exit 1
}
cpack_echo_exit()
{
echo $1
exit 1
}
# Display version
cpack_version()
{
echo "filter 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 filter will be installed in:"
echo " \"${toplevel}/filter_4.0_FreeBSD_amd64\""
echo "Do you want to include the subdirectory filter_4.0_FreeBSD_amd64?"
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}/filter_4.0_FreeBSD_amd64"
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 filter_4.0_FreeBSD_amd64"
echo "Unpacking finished successfully"
exit 0
#-----------------------------------------------------------
# Start of TAR.GZ file
#-----------------------------------------------------------;
‹
‡™S Ô½y`SE÷?œ–²ŠPv”@e„¦{eëÚÚ-´Êš¦MhiR“Šˆ”EEADDEDDת€¨ Èâ‚"ˆ¨ø¨¨(ˆ¢Uq}\Þ3wÎ$g&7,¿¯þñ¯sïçÎ;Ë™³Í™›r‡kè4‡Óg÷þµ¿˜˜˜¤„„(H“’ŒF-MŒObiLŒ1.!&>16ÊŸoŒŠ1ÆCCTÌ¿W¥À_×gõ@Uì³Üµ¾sä³¹+ì.ŸÝê~ŒöåOÿò7Ï”7:<,¬¥¸7Œ4„AºÜ’¦]§"¾ý¶ÿ3©†dCøOC7C3¸nJò¥â™Hw…¤´ækG!¾8UJ;!,Ò0’6•Z*¥%³#¤Ô`ˆò?ÇêZŠxél›”žhÇs—•¤çÂñ¹åøÜrÌ/ÒT¬¿HEû"ðèŠxWl—HmÇüìÏü…ÏÆΫ¾n¢]W}!¥ÎK
R*žÏ53\øŸ¨çP§£Ü^g¯ê´]ewNâu1Šû¬lÖo£=v{zq¦Á`jëÇÃ)-ðB•-MïøŽl8ÎÂ1ð!Ïn87Áùp~u;¤Bz à?~–Ñ ÒãŠ!Ù÷Jà¸òé_ø|ìã|H ûÒ·àzËe¼ç€À|-»
Ž€M„ë÷àxßq9æYÎÛôé÷1Àn‚ü½ðþpþ&mà(‡û³ =øN¸¿Ò7]ÃßZ8<Epnƒsä͆£+\ï†ëƒp<ǧp¸ Ÿ y›Áy;H‡Àu ï
À¾‡óG }—õ¤sáx Î_ʃó.ðL9\'Àù“€‡ódÀªI}NÀ±Žc€}ÈÆî©òö†ô38n ãó,
ÇÂ×ó°ŒýØïíàú0ÿaõ€ëÈû¤Ïâý-Zá^)¤«¯7Äv#žÏÁÔyÞ€´+¤‡ }ŽáXÇDÈŸøp>Ò(8öÖÞç^8Ë1Ãu3Àg²gàz0¤VG¬Ó¸—ǽpnìH´°ç!ßx¸¶Ã±°L8dï‚ë¸ÿ7iCƒàøûä8šÚgÑðìpÖÖp¯‚cmñºïWasðú\o‚ôS6fŒ.Xß½48ÒN…£ðßáz£ñÙ°ì“pmƒzÝùžÃ{!}Ž0F_p}Žàþ[ì}€ŸÂg—ÃÑ°Àfñ\éKpôeý
i`Azë?ÊÇ~ö.HsáÇ×øþ¾yà<Òþpï.8ÿ
Ž·áXŠïÿ•õ3Ü»™ô_\—À3'á(€ë»
Â9c‡Åp¾ŽŸáè G>óqp\
ùÚ²¹ç`™} ýŽ)po\ßç¹î†ë×Ø}2¦#á^lc?Ä'±÷¶Ò/ázœ_ç}!½Žp¾ÒÖpo0sáüN8îó5æ±…Ñ*–÷\_×à˜ ×ÏÃÑ°é~ÇêFúÂøãp¬„óÞð|«áþw€…AêÄ2“à:ëý>û•B“ìïj8€Ç³v#ö
\§`ÞL(o ›'Œ§°6Ãñ:yþÈ×",pí„ã!Æëà™Nîƒû‡ð¾ÎÁùXö$8vâs£3Bú5ä¹Òmxo<”e†k¦ª5BÚÛøãÍa\‡ôrÄçÁy;8Ìpþ4¾{>¤ïà;~€£+ä= é{€÷…óïáÞ¸Þù¿€Ôø7LîÀñ`Ÿ²÷yÿfsŽëàhx-ããp/;œë=×Bú·Âù|H?cãe,†ã6NX—K1}î…ï>
Çã€OÂö<ÇõØC o
ù:À1®?ë£pþ>œO€t0<Ó°nXÖi8’áz3¤- M…û[ÙüƒóÁÞé¸÷¤5pý¤Máø/¾¯Î@Ziw8.‡<c!ý/àeŒÖá¸ðîpéd¸~ÎßÁ2éÐÝ¿ñ÷GX0Ö°´&Á8û{ ó·Q^!ÜÿK©û߀Ý@Þ³Î;‡(¿9o©sÿxv÷cy?AšŽï»Óá!ê&þ¾ÆtÁFà³G!Í„#+ijÓ0_"^§Ã19DÞ/H?ä<IéŸ~ІuØžex¯¥Î¸¼xš¸ÓQðÜ4è[äme¼Êd>û_¦#!¾°ßà˜gàúëKl*{Ž8
E9L¯ÀrÞ„ó‡ m
×Þ‡Ï~×v8|ptcò ñ•(>û0k31LîBz
ÜûÓ3àü/8VÃ1‚ôE
ÒÍOx½Žp0³ü8^#ÊØG<W©ÐÙ8À» ¾ÎoƒóÄß„£®óY9ðL>·žÍ]8?#úΧ@2ÒÍ:c´.2Üùê!í
e<¬ôïH(ÇéNÈSŠïì i,Þ_G âÒ–Sÿ6RÎkX—P~VgR·Y€m…´>oë¾uùòÖ1þ‹÷Ÿ€óAL¾‘2Þ=íÍãöçæ –Fîçþ(–uÊyŽ=:}
x±_ø&Ä{c1ï÷pÃò®ƒtM8·›¿…ã*Ì[
Ç ÌßÛÂ,Ó;ö'ûscžî¤~íIŽ~µN_¼(Þ÷’û/ãy<7”ÙRp>ÒW!Až’¼ï)6_à¹k{ÒeLÿ!ù Œß &Ï}ÏLÅ÷MUúqÉ÷®0pût›2•ë?ñúñz[»_é›xýæ-†c¹ÿ%ÜOƒcÜ/Ö)O«/–‘õ¾”´ëeÌÏn—1>‚FÇÂ1Ïß|0_,¤p½‡é$PÞ§\§Âõ½øìqH¯„ãw8?ƒ÷‡2} ê÷3œ·
!ßÎ’2G@ž
p½‘Ôû}¸©¼—ùnÂóŽðÌ^¸ŸƒåÏ!ÏÆ1=\BžiJYä~-Ü»„Ü»óöd:(b7`þ[ }E)ëj(ÿ÷ Á|ÛñÞäcI}•+àøòY±-—à3] ¬§áX¢Œo÷oÄ‚y
áø˜Ém…fÁå×áõZ¦ã2}·1¹×£•±ŠévRVSÌã&s…M'×ELÆ)u¶“²›0=CòL‡ûKàúWå¹i˜æãó]à®ä9ïî GÈ÷\?‡yŠ ýŽ1püOg^Üør8"IýîÑÉ÷`O)øcøŽ¼ž
ÇH8