From 9b63b6d5e1816be1f0bb6db5f14ea420c6a12efb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 15 Jul 2019 11:22:10 -0700 Subject: update parse-descriptor.pl libdivecomputer is a submodule. Just hardcode the path to descriptor.c. Signed-off-by: Dirk Hohndel --- scripts/parse-descriptor.pl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/parse-descriptor.pl b/scripts/parse-descriptor.pl index 6bde935f0..bd27f8354 100755 --- a/scripts/parse-descriptor.pl +++ b/scripts/parse-descriptor.pl @@ -4,19 +4,17 @@ # # Usage: # -# parse-descriptor.pl +# parse-descriptor.pl # # depending on suffix of the outfile it creates the right content for # either a text file or and html file use Carp; #set command line arguments -my ($infi, $outfi) = @ARGV; +my $outfi = $ARGV[0]; my ($type) = $outfi =~ /\.([^.]+)$/; -if ($infi !~ /.*descriptor.c/) { - croak "run as $ARGV[0] \n"; -} +my $infi = "libdivecomputer/src/descriptor.c"; open(my $fh, "<", $infi) || croak "can't open $infi: $!"; open(STDOUT, ">", $outfi) || croak "can't open $outfi: $!"; -- cgit v1.2.3-70-g09d2