aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-27 13:01:45 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-27 13:01:45 +0000
commit662f6f3c1b9545e5349344c5c5830c8246d07c37 (patch)
tree3efd46192d3bafeab6e2ab04c1ca1a5f4a2b2f58
parent51185d84093fca404992eb1eb2a46f464cae5794 (diff)
downloadpaludis-662f6f3c1b9545e5349344c5c5830c8246d07c37.tar.gz
paludis-662f6f3c1b9545e5349344c5c5830c8246d07c37.tar.xz
Don't be silly
-rw-r--r--src/paludis/paludis.cc39
1 files changed, 25 insertions, 14 deletions
diff --git a/src/paludis/paludis.cc b/src/paludis/paludis.cc
index 09a5619..ee2edb5 100644
--- a/src/paludis/paludis.cc
+++ b/src/paludis/paludis.cc
@@ -32,6 +32,7 @@
#include "config.h"
#include <paludis/paludis.hh>
+#include <paludis/hashed_containers.hh>
#include <paludis/util/util.hh>
#include <paludis/util/log.hh>
#include <paludis/environment/default/default_environment.hh>
@@ -45,6 +46,8 @@
#include <string>
#include <cstdlib>
+#include <time.h>
+
/** \file
* Main paludis program.
*/
@@ -216,21 +219,29 @@ main(int argc, char *argv[])
{
if ((1 == std::distance(CommandLine::get_instance()->begin_parameters(),
CommandLine::get_instance()->end_parameters())) &&
- ("moo" == *CommandLine::get_instance()->begin_parameters()))
+ (47503 == (0xffff & paludis::CRCHash<std::string>()
+ (*CommandLine::get_instance()->begin_parameters()))))
{
- cout << endl;
- cout << " ______________________________" << endl;
- cout << "( Ugh. Another Portage user... )" << endl;
- cout << " ------------------------------ " << endl;
- cout << " o" << endl;
- cout << " o" << endl;
- cout << " ^__^ /" << endl;
- cout << " (" << colour(cl_bold_pink, "oo") << ")\\_______/ _________" << endl;
- cout << " (__)\\ )=( ____|_ \\_____" << endl;
- cout << " ||----w | \\ \\ \\_____ |" << endl;
- cout << " || || || ||" << endl;
- cout << endl;
- return EXIT_SUCCESS;
+ time_t t(time(0));
+ const struct tm * tt(localtime(&t));
+ if (tt->tm_mday == 1 && tt->tm_mon == 3)
+ {
+ cout << endl;
+ cout << " ______________________________" << endl;
+ cout << "( Ugh. Another Portage user... )" << endl;
+ cout << " ------------------------------ " << endl;
+ cout << " o" << endl;
+ cout << " o" << endl;
+ cout << " ^__^ /" << endl;
+ cout << " (" << colour(cl_bold_pink, "oo") << ")\\_______/ _________" << endl;
+ cout << " (__)\\ )=( ____|_ \\_____" << endl;
+ cout << " ||----w | \\ \\ \\_____ |" << endl;
+ cout << " || || || ||" << endl;
+ cout << endl;
+ return EXIT_SUCCESS;
+ }
+ else
+ throw DoHelp("don't be silly");
}
else
throw DoHelp("you should specify exactly one action");