1 |
if emerge is started with "moo" as first command, it outputs a moo ascii art |
2 |
to stderr and proceed as usual while ignoring the moo argument |
3 |
--- |
4 |
bin/emerge | 9 +++++++++ |
5 |
1 files changed, 9 insertions(+), 0 deletions(-) |
6 |
|
7 |
diff --git a/bin/emerge b/bin/emerge |
8 |
index 5d74bfa..51adc7b 100755 |
9 |
--- a/bin/emerge |
10 |
+++ b/bin/emerge |
11 |
@@ -38,6 +38,15 @@ except ImportError: |
12 |
|
13 |
if __name__ == "__main__": |
14 |
import sys |
15 |
+ |
16 |
+ # output a moo if first argument is "moo" and |
17 |
+ # proceed as usual without that argument |
18 |
+ if sys.argv[1] == "moo": |
19 |
+ sys.stderr.write(" _ __ ___ ___ ___\n| '_ ` _ \\ " |
20 |
+ "/ _ \\ / _ \\\n| | | | | | (_) | (_) " |
21 |
+ "|\n|_| |_| |_|\\___/ \\___/\n\n") |
22 |
+ sys.argv.pop(1) |
23 |
+ |
24 |
from portage.exception import ParseError, PermissionDenied |
25 |
try: |
26 |
retval = emerge_main() |
27 |
-- |
28 |
1.6.4.4 |