2 # This script was generated using Makeself 2.1.5
5 MD5
="7693a1a6a3059d119117a97087f0941d"
6 TMPROOT
=${TMPDIR:=/tmp}
8 label
="joerg ZSH config files"
10 scriptargs
="./install.zsh MAGIC"
11 targetdir
="tmp.8fF7ppTk5s"
16 if type printf > /dev
/null
; then
18 elif test -x /usr
/ucb
/echo; then
19 print_cmd
="/usr/ucb/echo"
28 $print_cmd $print_cmd_arg "$1"
41 if test -d /usr
/xpg
4/bin
; then
42 PATH
=/usr
/xpg
4/bin
:$PATH
44 df
-kP "$1" |
tail -1 |
awk '{print $4}'
50 blocks
=`expr $3 / 1024`
51 bytes
=`expr $3 % 1024`
52 dd if="$1" ibs
=$2 skip
=1 obs
=1024 conv
=sync
2> /dev
/null | \
53 { test $blocks -gt 0 && dd ibs
=1024 obs
=1024 count
=$blocks ; \
54 test $bytes -gt 0 && dd ibs
=1 obs
=1024 count
=$bytes ; } 2> /dev
/null
60 Makeself version 2.1.5
61 1) Getting help or info about $0 :
62 $0 --help Print this message
63 $0 --info Print embedded info : title, default target directory, embedded script ...
64 $0 --lsm Print embedded lsm entry (or no LSM)
65 $0 --list Print the list of files in the archive
66 $0 --check Checks integrity of the archive
69 $0 [options] [--] [additional arguments to embedded script]
70 with following options (in that order)
71 --confirm Ask before running embedded script
72 --noexec Do not run embedded script
73 --keep Do not erase target directory after running
75 --nox11 Do not spawn an xterm
76 --nochown Do not give the extracted files to the current user
77 --target NewDirectory Extract in NewDirectory
78 --tar arg1 [arg2 ...] Access the contents of the archive through the tar command
79 -- Following arguments will be passed to the embedded script
86 PATH
=${GUESS_MD5_PATH:-"$OLD_PATH:/bin:/usr/bin:/sbin:/usr/local/ssl/bin:/usr/local/bin:/opt/openssl/bin"}
88 MD5_PATH
=`exec <&- 2>&-; which md5sum || type md5sum`
89 test -x "$MD5_PATH" || MD5_PATH
=`exec <&- 2>&-; which md5 || type md5`
90 test -x "$MD5_PATH" || MD5_PATH
=`exec <&- 2>&-; which digest || type digest`
93 MS_Printf
"Verifying archive integrity..."
94 offset
=`head -n 404 "$1" | wc -c | tr -d " "`
99 crc
=`echo $CRCsum | cut -d" " -f$i`
100 if test -x "$MD5_PATH"; then
101 if test `basename $MD5_PATH` = digest
; then
104 md5
=`echo $MD5 | cut -d" " -f$i`
105 if test $md5 = "00000000000000000000000000000000"; then
106 test x
$verb = xy
&& echo " $1 does not contain an embedded MD5 checksum." >&2
108 md5sum=`MS_dd "$1" $offset $s | eval "$MD5_PATH $MD5_ARG" | cut -b-32`;
109 if test "$md5sum" != "$md5"; then
110 echo "Error in MD5 checksums: $md5sum is different from $md5" >&2
113 test x
$verb = xy
&& MS_Printf
" MD5 checksums are OK." >&2
115 crc
="0000000000"; verb
=n
118 if test $crc = "0000000000"; then
119 test x
$verb = xy
&& echo " $1 does not contain a CRC checksum." >&2
121 sum1
=`MS_dd "$1" $offset $s | CMD_ENV=xpg4 cksum | awk '{print $1}'`
122 if test "$sum1" = "$crc"; then
123 test x
$verb = xy
&& MS_Printf
" CRC checksums are OK." >&2
125 echo "Error in checksums: $sum1 is different from $crc"
130 offset
=`expr $offset + $s`
137 tar $1vf - 2>&1 ||
{ echo Extraction failed.
> /dev
/tty
; kill -15 $$
; }
157 echo Identification
: "$label"
158 echo Target directory
: "$targetdir"
159 echo Uncompressed size
: 496 KB
160 echo Compression
: gzip
161 echo Date of packaging
: Sun Feb
24 23:39:23 CET
2013
162 echo Built with Makeself version
2.1.5 on
163 echo Build
command was
: "/usr/bin/makeself \\
165 \"/home/joerg/tmp/tmp.8fF7ppTk5s\" \\
166 \"/home/joerg/.zsh/zsh-install.sh\" \\
167 \"joerg ZSH config files\" \\
171 if test x
$script != x
; then
172 echo Script run after extraction
:
173 echo " " $script $scriptargs
175 if test x
"" = xcopy
; then
176 echo "Archive will copy itself to a temporary location"
178 if test x
"n" = xy
; then
179 echo "directory $targetdir is permanent"
181 echo "$targetdir will be removed after extraction"
186 echo LABEL
=\"$label\"
187 echo SCRIPT
=\"$script\"
188 echo SCRIPTARGS
=\"$scriptargs\"
189 echo archdirname
=\"tmp
.8fF7ppTk5s
\"
192 echo filesizes
=\"$filesizes\"
193 echo CRCsum
=\"$CRCsum\"
206 echo Target directory
: $targetdir
207 offset
=`head -n 404 "$0" | wc -c | tr -d " "`
210 MS_dd
"$0" $offset $s |
eval "gzip -cd" | UnTAR t
211 offset
=`expr $offset + $s`
216 offset
=`head -n 404 "$0" | wc -c | tr -d " "`
221 MS_dd
"$0" $offset $s |
eval "gzip -cd" |
tar "$arg1" - $
*
222 offset
=`expr $offset + $s`
256 finish
="echo Press Return to close this window...; read junk"
268 echo Unrecognized flag
: "$1" >&2
279 tmpdir
=$TMPROOT/makeself.
$RANDOM.
`date +"%y%m%d%H%M%S"`.$$
281 echo "Could not create temporary directory $tmpdir" >&2
284 SCRIPT_COPY
="$tmpdir/makeself"
285 echo "Copying to a temporary location..." >&2
286 cp "$0" "$SCRIPT_COPY"
287 chmod +x
"$SCRIPT_COPY"
289 exec "$SCRIPT_COPY" --phase2 -- $initargs
292 finish
="$finish ; rm -rf `dirname $0`"
296 if test "$nox11" = "n"; then
297 if tty
-s; then # Do we have a terminal?
300 if test x
"$DISPLAY" != x
-a x
"$xterm_loop" = x
; then # No, but do we have X?
301 if xset q
> /dev
/null
2>&1; then # Check for valid DISPLAY variable
302 GUESS_XTERMS
="xterm rxvt dtterm eterm Eterm kvt konsole aterm"
303 for a
in $GUESS_XTERMS; do
304 if type $a >/dev
/null
2>&1; then
309 chmod a
+x
$0 ||
echo Please add execution rights on
$0
310 if test `echo "$0" | cut -c1` = "/"; then # Spawn a terminal!
311 exec $XTERM -title "$label" -e "$0" --xwin "$initargs"
313 exec $XTERM -title "$label" -e "./$0" --xwin "$initargs"
320 if test "$targetdir" = "."; then
323 if test "$keep" = y
; then
324 echo "Creating directory $targetdir" >&2
328 tmpdir
="$TMPROOT/selfgz$$$RANDOM"
331 mkdir
$dashp $tmpdir ||
{
332 echo 'Cannot create target directory' $tmpdir >&2
333 echo 'You should try option --target OtherDirectory' >&2
340 if test x
$SETUP_NOCHECK != x1
; then
343 offset
=`head -n 404 "$0" | wc -c | tr -d " "`
345 if test x
"$verbose" = xy
; then
346 MS_Printf
"About to extract 496 KB in $tmpdir ... Proceed ? [Y/n] "
348 if test x
"$yn" = xn
; then
353 MS_Printf
"Uncompressing $label"
355 if test "$keep" = n
; then
356 trap 'echo Signal caught, cleaning up >&2; cd $TMPROOT; /bin/rm -rf $tmpdir; eval $finish; exit 15' 1 2 3 15
359 leftspace
=`MS_diskspace $tmpdir`
360 if test $leftspace -lt 496; then
362 echo "Not enough space left in "`dirname $tmpdir`" ($leftspace KB) to decompress $0 (496 KB)" >&2
363 if test "$keep" = n
; then
364 echo "Consider setting TMPDIR to a directory with more free space."
371 if MS_dd
"$0" $offset $s |
eval "gzip -cd" |
( cd "$tmpdir"; UnTAR x
) | MS_Progress
; then
372 if test x
"$ownership" = xy
; then
373 (PATH
=/usr
/xpg
4/bin
:$PATH; cd "$tmpdir"; chown
-R `id -u` .
; chgrp
-R `id -g` .
)
377 echo "Unable to decompress $0" >&2
380 offset
=`expr $offset + $s`
386 if test x
"$script" != x
; then
387 if test x
"$verbose" = xy
; then
388 MS_Printf
"OK to execute: $script $scriptargs $* ? [Y/n] "
390 if test x
"$yn" = x
-o x
"$yn" = xy
-o x
"$yn" = xY
; then
391 eval $script $scriptargs $
*; res
=$?
;
394 eval $script $scriptargs $
*; res
=$?
396 if test $res -ne 0; then
397 test x
"$verbose" = xy
&& echo "The program '$script' returned an error code ($res)" >&2
400 if test "$keep" = n
; then
404 eval $finish; exit $res