start | find | index | login or register | edit
2008-03-29
by earl, 4254 days ago
Brilliant hack of the day: Wrapping an archive into a shell-script to make it self-extracting . Simply concat the tar-gzipped archive to the following script:

#!/bin/sh
SKIP=`awk '/^__ARCHIVE__/ {print NR + 1; exit 0;}' $0`
tail +$SKIP $0 | tar xz
exit 0
__ARCHIVE__

(Source)

Lovely! I'm deeply in awe. Maybe there'll soon be a single-click Vanilla installer ...
powered by vanilla
echo earlZstrainYat|tr ZY @.
earl.strain.at • esa3 • online for 6836 days • c'est un vanilla site