avoid problems with echo and quotes in Windows

This commit is contained in:
2018-11-16 10:28:46 +01:00
parent 493dc19d8b
commit 8f34dd2c84
2 changed files with 7 additions and 5 deletions

View File

@ -86,10 +86,7 @@ streamReferences: ../CONFIG_STREAM
# create stream.dbd from all RECORDTYPES
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: ../CONFIG_STREAM
$(PERL) ../makedbd.pl $(RECORDTYPES) > $@
ifdef ASYN
echo "registrar(AsynDriverInterfaceRegistrar)" >> $@
endif
$(PERL) ../makedbd.pl $(if $(ASYN),--with-asyn) $(if $(BASE_3_14),,-3.13) $(RECORDTYPES) > $@
$(LIBRARY_DEFAULT).dbd$(DEP): ../CONFIG_STREAM
echo $(LIBRARY_DEFAULT).dbd: $< > $@

View File

@ -1,9 +1,14 @@
if (@ARGV[0] == "-3.13") {
if (@ARGV[0] eq "--with-asyn") {
shift;
$asyn = 1;
}
if (@ARGV[0] eq "-3.13") {
shift;
} else {
print "variable(streamDebug, int)\n";
print "variable(streamError, int)\n";
print "registrar(streamRegistrar)\n";
if ($asyn) { print "registrar(AsynDriverInterfaceRegistrar)\n"; }
}
print "driver(stream)\n";
for (@ARGV) {