File: makedist

package info (click to toggle)
openzwave 1.5+ds-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,436 kB
  • sloc: cpp: 42,219; xml: 13,497; ansic: 4,822; cs: 2,211; makefile: 497; sh: 160; perl: 18
file content (25 lines) | stat: -rwxr-xr-x 578 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/perl

use strict;
use XML::Simple;
use Data::Dumper;

my $input = ".distfiles";
my $output = "distfiles.mk";

open( my $fh => $input) || die "Cannot open $input: $!";
open( my $oh, ">", $output) || die "Cannot open $output: $!";

print $oh "# This File is automatically generated by make dist-update\n";
print $oh "# Any Edits on this file will be lost next time dist-update is run\n";
print $oh "\n";
print $oh "DISTFILES =\t";

while(my $line = <$fh>) {
    chomp($line);
    print $oh $line." \\\n\t";
}
print $oh "cpp/src/vers.cpp\n";
close($oh);
close($fh);