Rev 42 | 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 firfilter_5.2_FreeBSD_x86_64 subdirectory
--exclude-subdir exclude the firfilter_5.2_FreeBSD_x86_64 subdirectory
EOF
exit 1
}
cpack_echo_exit()
{
echo $1
exit 1
}
# Display version
cpack_version()
{
echo "firfilter Installer Version: 5.2, 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 firfilter will be installed in:"
echo " \"${toplevel}/firfilter_5.2_FreeBSD_x86_64\""
echo "Do you want to include the subdirectory firfilter_5.2_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}/firfilter_5.2_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 firfilter_5.2_FreeBSD_x86_64"
echo "Unpacking finished successfully"
exit 0
#-----------------------------------------------------------
# Start of TAR.GZ file
#-----------------------------------------------------------;
‹ úHGW ä½ xÅö: a•%,²†EÙ1“Ì6HHB L2“d`2f&! hDT@ÜQ㎊ŠˆŠŠŠ^EPÜQAp¼¨põ**ê;§úÔÌ©JÂÿê÷¾÷½Ñ¦º~]]]uêÔÙªºSæòœkù‡±±±É‰‰1&'["MJHÆ4ø‹±Æ%ÇY“â“ãbbqII±–˜Äºaø«õì>hŠsž·6p’ro¹ÓpzÂ]§~ÓÿüÊ`ü+\¾
—;àôýCÏ8Ùø[ã‰ñ ÖÐø'Yaü’bã,1±ÿP{”ßÿÏÇÿR[θȈˆÖ2ik‰€´!#MäS ߈
Þ“jI±´‚ûXzZZ@¾9+—Jg2ÝaQÒVT®QÆéÁ©Jz&Á2`is¥©JÚË¥¤KLð>lká1v‡’Ž6JŸcQûŠé¾b*/Ój¿Leÿ¢èèNxwê—L%oDzòøËÿ*àÀóõÇš‰üúcJºFJ¦ò¾Ip_Ë©ÿd;Ïu»ÊœõÎòsÝŽNwÅH¿w¤U^Ǻ‘nã|Ngza¦ePV‡ Épüµ '4¹u³Ð3n€›ÇaŸàÚ—póÑ€}ç÷ñ‹u¤Az9 ~ݿοƒt&å@~(#¤ŸÒýG ÅáX2œ¯…ô}ÈB:Ò×èþH‹gñ:/Ãù8FÂùSTægª³°Cp~%¤@þqº~‚®/…ô 8΄£-ôÙ‹ýü2(ÿ¤WK¾¦ßÊŸi&ÒŽ³ ¿ò«à˜G7Àª°~¨ï+H¯‡S«| Ì»÷@ú,¤Ó˃ókáÜ
çè/B
G#œO†kŸÁykÏ1¤- ÇfvGá¸ÛÈð9ŸDy ØjÈÜÇ%ÿÒÿ@úµùnJ§@z;£E(w–ƒc!a(ó6¤}!ýÒûàøŽ•pÄAù €¿ç6HÏã
Àž‡£5œ‡ôi¸Ö i>ä·@š
Ç…ƒ/m‘!ùÓh{)¤ëà(줷BÚðEP®òv8® ,ŽëàØ ùõ–å7ÛIÄxŽMÚ˜…òÝ ›’cøs‘G{ÊïRo³ô£zvÃý!ýŽ×à|2¤õp-Î+à| ¤3è¾Áp/ÝÛ@Ø:È·‡¾-†réÚ7p~œ?ÇHÈïãEÀž„ÃØtï
pôl¤èÞbÈ„t/¤Àñœ7Bú5¤[‰>«àèÏ|1¸ï8~G~¤:* Üãpl†óDHw~+œÿŽá¸†ž ×Ú@=S];A¾ð7àÈü³p<sÒ‰^DeÃñ£{¶ÀGÀ¶¡Ü€ó**—Ç
8.‚kÚ‘w ýÛisHS=(Ë/–sŒ×(SŒý„óÛàü'8†Àq5 Þ épm8_†2
éi6ó‘æTïÍp´s+óà|;¡L%¤wÖŸÑ"ðupÜ‚e ߇Žw ;€²‰Éâ›Ï).ä#ØuüÇX¸?Òþ„Ý ù.ôÌ#¾
ÇípŒ‚ûQ{©ìaÈw`sÄÇM?
å{Aºå,]?ΟÔOuO…ãºï,ÂÚAú&Ê8ž£k 6?œßƒóžÊÞ eÎFz#ý"¿Z8ïG.œ¥gσô¸ïäKÈ¿
é7>ø.8¿Ž!_@å_‡ô#ÀÞ‚ô¤¯ âý¨»¨
98× œwkfØ Ÿ éÍp\Š<†r 甹
ŽËq>Óýÿ¦ç‡´‡®7£±ºéÎƬ3ä{À± Îo¡z>Czöò$¤ý©®Ÿ°<•9ˆ²ÎïÁþ@z¤%ÞIõΆü<È é¿ KüH‡@úàýàçÂ!}‡÷žpô‚#
®Çõ'áüº^¤ÉÈò·O“×gà\6yþƒ€w:I=ïÀ=y(‹µ{÷kõ¿¦o½Ùy+ó"–k¨®!í¥Õs~˜{~ƒŸ‹ºï$×Óàø
ʬ¡g§ÃQ¬•Ç:߬õw<¥ÖIkûpvÏ,¸¶Ÿ®Gku¡MéIx£Ëéž±FÃ|èCåÏ"üQHŸG¹Oøv8¯§k.À‚c±%äK,Õž×e¤¿¡=Çhk <