Sun Jul 31 09:54:57 2011 UTC ()
Automatically determine and print out the release tag for the import.


(tron)
diff -r1.1 -r1.2 src/external/ibm-public/postfix/postfix2netbsd

cvs diff -r1.1 -r1.2 src/external/ibm-public/postfix/postfix2netbsd (expand / switch to unified diff)

--- src/external/ibm-public/postfix/postfix2netbsd 2009/06/23 15:02:51 1.1
+++ src/external/ibm-public/postfix/postfix2netbsd 2011/07/31 09:54:57 1.2
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#! /bin/sh 1#! /bin/sh
2# 2#
3# $NetBSD: postfix2netbsd,v 1.1 2009/06/23 15:02:51 tron Exp $ 3# $NetBSD: postfix2netbsd,v 1.2 2011/07/31 09:54:57 tron Exp $
4# 4#
5# Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. 5# Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
6# All rights reserved. 6# All rights reserved.
7# 7#
8# Redistribution and use in source and binary forms, with or without 8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions 9# modification, are permitted provided that the following conditions
10# are met: 10# are met:
11# 1. Redistributions of source code must retain the above copyright 11# 1. Redistributions of source code must retain the above copyright
12# notice, this list of conditions and the following disclaimer. 12# notice, this list of conditions and the following disclaimer.
13# 2. Redistributions in binary form must reproduce the above copyright 13# 2. Redistributions in binary form must reproduce the above copyright
14# notice, this list of conditions and the following disclaimer in the 14# notice, this list of conditions and the following disclaimer in the
15# documentation and/or other materials provided with the distribution. 15# documentation and/or other materials provided with the distribution.
16# 16#
@@ -95,20 +95,22 @@ find conf -type f \( -name '*.cf' -o -na @@ -95,20 +95,22 @@ find conf -type f \( -name '*.cf' -o -na
95 sed 1q < $t >/tmp/postfix5$$ 95 sed 1q < $t >/tmp/postfix5$$
96 echo "# \$NetBSD\$" >>/tmp/postfix5$$ 96 echo "# \$NetBSD\$" >>/tmp/postfix5$$
97 echo "#" >>/tmp/postfix5$$ 97 echo "#" >>/tmp/postfix5$$
98 sed "1d" < $t >>/tmp/postfix5$$ 98 sed "1d" < $t >>/tmp/postfix5$$
99 else 99 else
100 echo "# \$NetBSD\$" >/tmp/postfix5$$ 100 echo "# \$NetBSD\$" >/tmp/postfix5$$
101 echo "#" >>/tmp/postfix5$$ 101 echo "#" >>/tmp/postfix5$$
102 cat $t >> /tmp/postfix5$$ 102 cat $t >> /tmp/postfix5$$
103 fi 103 fi
104 mv /tmp/postfix5$$ $t && echo "added NetBSD RCS tag to $t" 104 mv /tmp/postfix5$$ $t && echo "added NetBSD RCS tag to $t"
105done 105done
106echo done 106echo done
107 107
 108VERSION=$(sed -n -e 's/^#define MAIL_VERSION_NUMBER.*"\(.*\)".*/\1/p' src/global/mail_version.h | tr . -)
 109
108echo You can import now. 110echo You can import now.
109 111
110echo Path: src/external/ibm-public/postfix/dist 112echo Path: src/external/ibm-public/postfix/dist
111echo Vendor: VENEMA 113echo Vendor: VENEMA
112echo Versiontag: PFIX-X-Y-Z 114echo Versiontag: PFIX-${VERSION}
113 115
114exit 0 116exit 0