| @@ -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" |
105 | done | | 105 | done |
106 | echo done | | 106 | echo done |
107 | | | 107 | |
| | | 108 | VERSION=$(sed -n -e 's/^#define MAIL_VERSION_NUMBER.*"\(.*\)".*/\1/p' src/global/mail_version.h | tr . -) |
| | | 109 | |
108 | echo You can import now. | | 110 | echo You can import now. |
109 | | | 111 | |
110 | echo Path: src/external/ibm-public/postfix/dist | | 112 | echo Path: src/external/ibm-public/postfix/dist |
111 | echo Vendor: VENEMA | | 113 | echo Vendor: VENEMA |
112 | echo Versiontag: PFIX-X-Y-Z | | 114 | echo Versiontag: PFIX-${VERSION} |
113 | | | 115 | |
114 | exit 0 | | 116 | exit 0 |