I don't care about the release date.
authorPierre Habouzit <madcoder@debian.org>
Tue, 31 Oct 2006 23:48:23 +0000 (00:48 +0100)
committerPierre Habouzit <madcoder@debian.org>
Tue, 31 Oct 2006 23:48:23 +0000 (00:48 +0100)
remove one more uglyness

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Makefile.am
commands.c
curs_main.c
dotlock.c
globals.h
main.c
muttlib.c
reldate.h [deleted file]

index 9315b21..a3d64f6 100644 (file)
@@ -85,7 +85,7 @@ EXTRA_DIST = config.rpath  COPYRIGHT GPL OPS OPS.PGP OPS.CRYPT OPS.SMIME TODO \
        globals.h history.h init.h keymap.h mutt_crypt.h \
        mapping.h mime.h mutt.h mutt_curses.h mutt_menu.h \
        mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h \
-       mbox.h mh.h mx.h pager.h pgp.h protos.h reldate.h rfc1524.h rfc2047.h \
+       mbox.h mh.h mx.h pager.h pgp.h protos.h rfc1524.h rfc2047.h \
        rfc2231.h rfc822.h rfc3676.h \
        sort.h mime.types autogen.sh \
        _regex.h OPS.MIX remailer.c remailer.h browser.h state.h \
@@ -140,9 +140,6 @@ keymap_alldefs.h: $(srcdir)/OPS $(srcdir)/OPS.PGP $(srcdir)/OPS.MIX $(srcdir)/OP
 version.h: Makefile.am
        echo "#define MUTT_REVISION \"git\"" > version.h
 
-reldate:
-       echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > $(srcdir)/reldate.h
-
 install-exec-hook:
        if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/muttng_dotlock ; then        \
                rm -f $(DESTDIR)$(bindir)/mutt.dotlock ;                \
index 3a53ac7..edc09da 100644 (file)
@@ -53,8 +53,6 @@
 #include <sys/types.h>
 #include <utime.h>
 
-extern char *ReleaseDate;
-
 /* The folder the user last saved to.  Used by ci_save_message() */
 static char LastSaveFolder[_POSIX_PATH_MAX] = "";
 
index 18822d4..a7e8286 100644 (file)
@@ -113,7 +113,6 @@ static const char *No_visible = N_("No visible messages.");
 #define UNREAD(h) mutt_thread_contains_unread (Context, h)
 #define SW              (option(OPTMBOXPANE)?SidebarWidth:0)
 
-extern const char *ReleaseDate;
 extern size_t UngetCount;
 
 void index_make_entry (char *s, size_t l, MUTTMENU * menu, int num)
index 6870553..8fdc117 100644 (file)
--- a/dotlock.c
+++ b/dotlock.c
 #include <getopt.h>
 #endif
 
-#ifdef DL_STANDALONE
-# include "reldate.h"
-#endif
-
 #define MAXLINKS 1024           /* maximum link depth */
 
 #ifdef DL_STANDALONE
@@ -338,7 +334,7 @@ static void END_PRIVILEGED (void)
 
 static void usage (const char *av0)
 {
-  fprintf (stderr, "dotlock [Mutt-ng %s (%s)]\n", VERSION, ReleaseDate);
+  fprintf (stderr, "dotlock [Mutt-ng %s]\n", VERSION);
   fprintf (stderr, "usage: %s [-t|-f|-u|-d] [-p] [-r <retries>] file\n", av0);
 
   fputs ("\noptions:"
index 62f829b..5977ee1 100644 (file)
--- a/globals.h
+++ b/globals.h
@@ -316,14 +316,4 @@ extern const char *Weekdays[];
 extern const char *Months[];
 #endif
 
-#ifdef MAIN_C
-/* so that global vars get included
- * FIXME WTF IS THIS?!?!???!?!??!?!??
- */
-#include "mx.h"
-#include "buffy.h"
-#include "sort.h"
-#include "mutt_crypt.h"
-#endif /* MAIN_C */
-
 #endif /* !_GLOBALS_H */
diff --git a/main.c b/main.c
index 0a199b1..54899d8 100644 (file)
--- a/main.c
+++ b/main.c
 #include <lib-lib/file.h>
 
 #include "mutt.h"
+#include "mx.h"
+#include "buffy.h"
+#include "sort.h"
+#include "mutt_crypt.h"
 #include "mutt_curses.h"
 #include "keymap.h"
 #include "url.h"
-#include "mutt_crypt.h"
 #include "mutt_idna.h"
 #include "xterm.h"
 
index 6146d4e..04c0b3a 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -27,7 +27,6 @@
 #include "url.h"
 #include "attach.h"
 
-#include "reldate.h"
 #include "version.h"
 
 #ifdef USE_IMAP
@@ -1296,9 +1295,9 @@ const char *mutt_make_version (int full)
   static char vstring[STRING];
 
   if (full)
-    snprintf (vstring, sizeof (vstring), "Mutt-ng %s-r%s (based "
-              "on Mutt 1.5.11/%s)", MUTT_VERSION, MUTT_REVISION,
-              ReleaseDate);
+    snprintf (vstring, sizeof (vstring),
+              "Mutt-ng %s-r%s (based on Mutt 1.5.11)",
+              MUTT_VERSION, MUTT_REVISION);
   else
     snprintf (vstring, sizeof (vstring), "mutt-ng/%s-r%s",
               MUTT_VERSION, MUTT_REVISION);
diff --git a/reldate.h b/reldate.h
deleted file mode 100644 (file)
index 88cba98..0000000
--- a/reldate.h
+++ /dev/null
@@ -1 +0,0 @@
-const char *ReleaseDate = "2005-09-15";