]> git.sur5r.net Git - openldap/commitdiff
Forgot to add mkversion... ud needs the version string to
authorKurt Zeilenga <kurt@openldap.org>
Wed, 28 Apr 1999 19:59:00 +0000 (19:59 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 28 Apr 1999 19:59:00 +0000 (19:59 +0000)
non-static and non-const and needs it named "Version".

build/mkversion [new file with mode: 0755]
clients/ud/Makefile.in

diff --git a/build/mkversion b/build/mkversion
new file mode 100755 (executable)
index 0000000..43d1121
--- /dev/null
@@ -0,0 +1,58 @@
+#! /bin/sh
+#
+# Copyright 1998,1999 The OpenLDAP Foundation
+# COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
+# of this package for details.
+#
+# Create a version.c file
+#
+PACKAGE=OpenLDAP
+VERSION=unknown
+SYMBOL=__Version
+static=static
+const=const
+while :
+       do case "$1" in
+               -p)
+                       PACKAGE=$2
+                       shift; shift ;;
+               -v)
+                       VERSION=$2
+                       shift; shift ;;
+
+               -c)
+                       const=
+                       shift ;;
+               -n)
+                       SYMBOL=$2
+                       shift; shift ;;
+               -s)
+                       static=
+                       shift ;;
+
+#              -*) shift ;;
+               *)
+                       break ;;
+       esac
+done
+
+if test $# != 1 ; then
+       echo 'usage: mkversion [-c] [-s] [-p package] [-v version] application'
+       exit 1
+fi
+
+APPLICATION=$1
+WHEN=`date`
+WHOWHERE="$USER@`uname -n`:`pwd`"
+
+cat << __EOF__
+/*
+ * Copyright 1998,1999 The OpenLDAP Foundation
+ * COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
+ * of this package for details.
+ */
+
+$static $const char $SYMBOL[] =
+"@(#) \$$PACKAGE: $APPLICATION $VERSION ($WHEN) \$\n\t$WHOWHERE\n";
+
+__EOF__
index be1dd4aa22c4bd31e363a0d1bd8ba0663f39b186..9a85a28b80f53c589eebc5142f2f3e6a99dbf842 100644 (file)
@@ -17,7 +17,7 @@ ud : version.o
 
 version.c: ${OBJS} $(LDAP_LIBDEPEND)
        @-$(RM) $@
-       $(MKVERSION) ud > $@
+       $(MKVERSION) -s -c -n Version UserDirectory > $@
 
 install-local: FORCE
        -$(MKDIR) $(bindir)