Skip to content

Commit 821bb64

Browse files
[[ Gyp-LCIDLC ]] Work around a Gyp bug in passing command arguments
On Windows, Gyp is sometimes too eager in interpreting arguments to scripts as paths rather than literals. As I've not been able to track down the source of this issue, a work-around in the affected script is required.
1 parent 2f64e97 commit 821bb64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util/encode_source.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/usr/bin/env perl
22

33
use warnings;
4+
use File::Basename;
45

56
# Incoming arguments
67
my $sourceFile = $ARGV[0];
78
my $destFile = $ARGV[1];
8-
my $varName = $ARGV[2];
9+
my $varName = basename($ARGV[2]);
910

1011
#! /usr/bin/revolution -ui
1112

0 commit comments

Comments
 (0)