From: Alexander Sulfrian <alexander@sulfrian.net>
To: gentoo-soc@lists.gentoo.org
Cc: Alexander Sulfrian <alexander@sulfrian.net>
Subject: [gentoo-soc] [PATCH] added easter egg to emerge
Date: Thu, 8 Apr 2010 03:57:22 +0200 [thread overview]
Message-ID: <1270691842-28563-2-git-send-email-alexander@sulfrian.net> (raw)
In-Reply-To: <1270691842-28563-1-git-send-email-alexander@sulfrian.net>
if emerge is started with "moo" as first command, it outputs a moo ascii art
to stderr and proceed as usual while ignoring the moo argument
---
bin/emerge | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/bin/emerge b/bin/emerge
index 5d74bfa..51adc7b 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -38,6 +38,15 @@ except ImportError:
if __name__ == "__main__":
import sys
+
+ # output a moo if first argument is "moo" and
+ # proceed as usual without that argument
+ if sys.argv[1] == "moo":
+ sys.stderr.write(" _ __ ___ ___ ___\n| '_ ` _ \\ "
+ "/ _ \\ / _ \\\n| | | | | | (_) | (_) "
+ "|\n|_| |_| |_|\\___/ \\___/\n\n")
+ sys.argv.pop(1)
+
from portage.exception import ParseError, PermissionDenied
try:
retval = emerge_main()
--
1.6.4.4
next prev parent reply other threads:[~2010-04-08 1:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 1:57 [gentoo-soc] Required patch for application Alexander Sulfrian
2010-04-08 1:57 ` Alexander Sulfrian [this message]
2010-04-08 17:04 ` [gentoo-soc] [PATCH] added easter egg to emerge Petteri Räty
2010-04-08 17:10 ` AlexanderS
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1270691842-28563-2-git-send-email-alexander@sulfrian.net \
--to=alexander@sulfrian.net \
--cc=gentoo-soc@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox