/[pkg-mixmaster]/trunk/debian/build-postinst
ViewVC logotype

Contents of /trunk/debian/build-postinst

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1006 - (show annotations) (download)
Sat Nov 29 11:25:34 2008 UTC (4 years, 5 months ago) by colint
File size: 513 byte(s)
Add debian directory
1 #!/usr/bin/perl -wT
2
3 use strict;
4
5 my %FILES = (
6 DESTBLOCK => 'conf/dest.blk',
7 MLIST => 'conf/mlist.txt',
8 RLIST => 'conf/rlist.txt',
9 PUBRINGMIX => 'conf/pubring.mix',
10 PUBRINGASC => 'conf/pubring.asc');
11
12 while(<>) {
13 chomp;
14 if (/^\s*FILLIN\s+(DESTBLOCK|MLIST|RLIST|PUBRINGMIX|PUBRINGASC)\s+(\S+)\s*$/) {
15 print "cat > $2 << __EOF__\n";
16 open (F, $FILES{$1}) or die ("Cannot open $FILES{$1}: $!\n");
17 print while <F>;
18 close (F);
19 print "__EOF__\n";
20 } else {
21 print $_,"\n";
22 };
23 };

  ViewVC Help
Powered by ViewVC 1.1.5