view bin/tomfoolery @ 7010:974c1217a5cd

<b_jonas> perl -e($o="bin/culprits-ng"); open$O,">",$o or die; print $O "#!/bin/sh\\n",q{exec hg log -l 512 --template "{desc}\\0" -- "$@" | perl -0ne \'/^<([^>]*)>/ and print"$1 "\'},"\\n"; close$O;chmod 0755,$o or die;
author HackBot
date Thu, 25 Feb 2016 07:22:49 +0000
parents 13a2a618bea0
children
line wrap: on
line source

if [ -z "$1" ];then exec echo "I have nothing to tell you.";fi;f="tmflry/$(echo "$1" | lowercase)";if [ -h "$f" ];then exec tomfoolery `readlink "$f" | sed 's/^tmflry\///'`;fi;if [ -x "$f" ];then exec bash "$f";fi;if [ -r "$f" ];then exec cat "$f";fi;echo "I must confess, I know not of what you are speaking."