[Slapt-get-user] [PATCH]: slapt-get 0.9.11e moo

Jason Woodward woodwardj at jaos.org
Thu Aug 17 19:24:43 EDT 2006


Hi Rui,

> Hello, this patch is kind of a joke, but anyway... here it is.
> 
> I don't know if anything like this was already proposed, but I didn't find 
> it in the mailing list archive neither in google.
> 
> It just accepts the "moo" argument like the original Debian's apt, and 
> applies to the 0.9.11e version.  I've tried to keep the original coding 
> style.

LOL!  You made my day!


> 
> Regards,
>    Rui Saraiva
> 
> 
> --- main.c	2006-07-27 04:14:04.000000000 +0100
> +++ main-moo.c	2006-08-17 22:32:01.000000000 +0100
> @@ -17,6 +17,7 @@
>    */
> 
>   #include "main.h"
> +static void moo(void);
>   static void usage(void);
>   static void version_info(void);
> 
> @@ -79,6 +80,11 @@ int main( int argc, char *argv[] )
>     textdomain(GETTEXT_PACKAGE);
>     #endif
> 
> +  if ( argc == 2 && strcmp(argv[1],"moo") == 0 ) {
> +    moo();
> +    exit(EXIT_SUCCESS);
> +  }
> +
>     if ( argc < 2 ) {
>       usage();
>       exit(EXIT_FAILURE);
> @@ -356,6 +362,17 @@ int main( int argc, char *argv[] )
>     return 0;
>   }
> 
> +void moo(void)
> +{
> +  printf("         (__)\n");
> +  printf("         (oo)\n");
> +  printf("   /------\\/\n");
> +  printf("  / |    ||\n");
> +  printf(" *  /\\---/\\\n");
> +  printf("    ~~   ~~\n");
> +  printf("....\"Have you mooed today?\"...\n");
> +}
> +
>   void usage(void)
>   {
>     printf("%s - Jason Woodward <woodwardj at jaos dot org>\n",PACKAGE);


take care,
jason

--
Jason Woodward
woodwardj at jaos.org




More information about the Slapt-get-user mailing list