]> andersk Git - libfaim.git/commitdiff
- Tue May 30 22:32:31 UTC 2000
authormid <mid>
Tue, 30 May 2000 22:37:20 +0000 (22:37 +0000)
committermid <mid>
Tue, 30 May 2000 22:37:20 +0000 (22:37 +0000)
   - 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'.

CHANGES
Makefile
aim_meta.c [new file with mode: 0644]
faim/aim.h
mkbuildinfo.sh [new file with mode: 0755]

diff --git a/CHANGES b/CHANGES
index 335d4baddd3153a939f0f979520528b66ee3f4cc..d8ac39f66599a19a9d978efc9666a6ebc358a929 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,14 @@
 
 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()
index e2be32124ae1c9484e52273c0897db9c0b52fc0e..ecd396bbb424f04d107852621f2575289f590ec3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,11 +21,15 @@ LIBFAIM_OBJECTS = \
        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)
diff --git a/aim_meta.c b/aim_meta.c
new file mode 100644 (file)
index 0000000..cb00187
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * 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;
+}
+
index 6257282437cfd3ad48506daa03dce0d23590fd1f..e4e995ecabfa617fe09084f21449594d56f7bf7a 100644 (file)
@@ -6,6 +6,10 @@
 #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>
 
@@ -524,5 +528,10 @@ char *aimutil_itemidx(char *toSearch, int index, char dl);
 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__ */
 
diff --git a/mkbuildinfo.sh b/mkbuildinfo.sh
new file mode 100755 (executable)
index 0000000..5eb1c4f
--- /dev/null
@@ -0,0 +1,6 @@
+#!/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
This page took 0.70199 seconds and 5 git commands to generate.