No release numbers
------------------
+ - Tue May 30 22:32:31 UTC 2000
+ - Added lock around tx seqnum to prevent that race when transmitting
+ from diverse threads. (actually committed earlier today)
+ - Added aim_meta.c and a few constants and things to keep
+ track of "releases".
+ - Added mkbuildinfo.sh to automatically update build string
+ "constants" on every invocation of 'make all'.
+
- Mon May 29 12:08:28 GMT 2000
- Rearranged aim_tx_flushqueue(); moved write operation
to aim_tx_sendframe()
aim_conn.o \
aim_chat.o \
aim_chatnav.o \
- aim_util.o
+ aim_util.o \
+ aim_meta.o
all: libfaim allutils
-libfaim: $(LIBFAIM_OBJECTS)
+mkbuildinfo:
+ @mkbuildinfo.sh
+
+libfaim: mkbuildinfo $(LIBFAIM_OBJECTS)
$(AR) cru libfaim.a $(LIBFAIM_OBJECTS)
$(RANLIB) libfaim.a
ld -o $(SONAME) $(LIBFAIM_OBJECTS) -shared -soname $(SONAME)
--- /dev/null
+/*
+ * Administrative things for libfaim.
+ *
+ *
+ */
+
+#include <faim/aim.h>
+#include <aim_buildcode.h> /* generated by mkbuildinfo.sh */
+
+long long aim_getbuilddate(void)
+{
+ return AIM_BUILDDATE;
+}
+
+long long aim_getbuildtime(void)
+{
+ return AIM_BUILDTIME;
+}
+
+char *aim_getbuildstring(void)
+{
+ static char string[100];
+
+ snprintf(string, 99, "%d.%d.%d-%Ld%Ld",
+ FAIM_VERSION_MAJOR,
+ FAIM_VERSION_MINOR,
+ FAIM_VERSION_MINORMINOR,
+ aim_getbuilddate(),
+ aim_getbuildtime());
+ return string;
+}
+
#ifndef __AIM_H__
#define __AIM_H__
+#define FAIM_VERSION_MAJOR 0
+#define FAIM_VERSION_MINOR 99
+#define FAIM_VERSION_MINORMINOR 0
+
#include <faim/faimconfig.h>
#include <faim/aim_cbtypes.h>
int aim_snlen(const char *sn);
int aim_sncmp(const char *sn1, const char *sn2);
+/* aim_meta.c */
+long long aim_getbuilddate(void);
+long long aim_getbuildtime(void);
+char *aim_getbuildstring(void);
+
#endif /* __AIM_H__ */
--- /dev/null
+#!/bin/bash
+rm -rf aim_meta.o aim_buildcode.h
+echo -n "#define AIM_BUILDDATE " > aim_buildcode.h
+echo `date +%Y%m%e` >> aim_buildcode.h
+echo -n "#define AIM_BUILDTIME " >> aim_buildcode.h
+echo `date +%H%M%S` >> aim_buildcode.h