File: moo.dpatch

package info (click to toggle)
iproute 20080725-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,480 kB
  • ctags: 4,934
  • sloc: ansic: 33,697; sh: 2,128; makefile: 367; cpp: 352; yacc: 339; lex: 145; perl: 101
file content (39 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /bin/sh /usr/share/dpatch/dpatch-run
## moo.dpatch by Alexander Wirt <formorer@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Add moo feature

@DPATCH@
diff -urNad pkg-iproute~/ip/ip.c pkg-iproute/ip/ip.c
--- pkg-iproute~/ip/ip.c	2007-10-18 11:48:11.000000000 +0200
+++ pkg-iproute/ip/ip.c	2007-10-18 14:14:20.000000000 +0200
@@ -59,6 +59,20 @@
 	usage();
 }
 
+static int do_moo(int argc, char **argv)
+{
+	
+fprintf(stderr,
+"\n"
+" _ __ ___   ___   ___\n"
+"| '_ ` _ \\ / _ \\ / _ \\\n"
+"| | | | | | (_) | (_) |\n"
+"|_| |_| |_|\\___/ \\___/\n"
+"\n\n"
+"P.S. no real cows were harmed for this moo\n");
+	exit(1);
+}
+                       
 static const struct cmd {
 	const char *cmd;
 	int (*func)(int argc, char **argv);
@@ -78,6 +92,7 @@
 	{ "xfrm",	do_xfrm },
 	{ "mroute",	do_multiroute },
 	{ "help",	do_help },
+	{ "moo",	do_moo }, 
 	{ 0 }
 };