Module Name:    src
Committed By:   tron
Date:           Sun Jul 31 09:54:57 UTC 2011

Modified Files:
        src/external/ibm-public/postfix: postfix2netbsd

Log Message:
Automatically determine and print out the release tag for the import.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/ibm-public/postfix/postfix2netbsd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/ibm-public/postfix/postfix2netbsd
diff -u src/external/ibm-public/postfix/postfix2netbsd:1.1 src/external/ibm-public/postfix/postfix2netbsd:1.2
--- src/external/ibm-public/postfix/postfix2netbsd:1.1	Tue Jun 23 15:02:51 2009
+++ src/external/ibm-public/postfix/postfix2netbsd	Sun Jul 31 09:54:57 2011
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-#	$NetBSD: postfix2netbsd,v 1.1 2009/06/23 15:02:51 tron Exp $
+#	$NetBSD: postfix2netbsd,v 1.2 2011/07/31 09:54:57 tron Exp $
 #
 # Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -105,10 +105,12 @@
 done
 echo done
 
+VERSION=$(sed -n -e 's/^#define MAIL_VERSION_NUMBER.*"\(.*\)".*/\1/p' src/global/mail_version.h | tr . -)
+
 echo You can import now.
 
 echo Path: src/external/ibm-public/postfix/dist
 echo Vendor: VENEMA
-echo Versiontag: PFIX-X-Y-Z
+echo Versiontag: PFIX-${VERSION}
 
 exit 0

Reply via email to