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ëÚÚ-´Ê¦MhiREEADDEDDת¨ Èâ"¨ø¨¨(¢Uq}\Þ3wÎ$g&7,¿¯þñ¯sïçÎ;˳Írkè4Óg÷þµ¿¤(HF-MObiL1.!&>16Êo1ÆCCTÌ¿W¥À_×gõ@Uì³Üµ¾sä³¹+ì.Ýê~öåOÿò7Ï7:<,¬¥¸74AºÜ¦]§"¾ý¶ÿ3©dCøOC7C3¸nJò¥âHw
¤´ækG!¾8UJ;!,Ò06Z*¥%³#¤Ô`ò?ÇêZxélhÇs¤çÂñ¹åøÜrÌ/ÒT¬¿HEû"ðèxWlHmÇüìÏü
ÏÆΫ¾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<EpnsäÍ£+\ïë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£ñÙ°ìpmzÝùÃ{!}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ìïj8dzv#ö
\§`ÞL(o '§°6Ãñ:yþÈ×",píã!ÆëàNîûð¾ÎÁùXö$8vâs£3Bú5ä¹Òmxo<ek¦ª5BÚÛøãÍa\ôrÄçÁy;8Ìpþ4¾{>¤ïà;~£+ä= é{÷
óïáÞ¸Þù¿Ôø7LîÀñ`²÷yÿfsëàhx-ããp/;ë=×Bú·Âù|H?cãe,ã6NXK1}î
ï>
ÇãOÂö<ÇõØC o
ù:À1®?ë£pþ>Ot0<Ó°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ÎkXP~VgR·Ym
´>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ût2ë?ñúñz[»_éxýæ-c¹ÿ%ÜOcÜ/Ö)O«/õ¾´ëeÌÏn1>FÇÂ1Ïß|0_,¤p½é$PÞ§\§Âõ½øìqH¯ãw8?÷2} ê÷3·
!ßÎ2G@
p½Ôû}¸©¼ùnÂóðÌ^¸åÏ!ÏÆ1=\BiJYä~-ܻܻóö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