Ticket #1683: 0001-srfi-18-Quote-build-script-variables.patch

File 0001-srfi-18-Quote-build-script-variables.patch, 1.6 KB (added by Vasilij Schneidermann, 5 years ago)
  • srfi-18/0.1.5/build-srfi-18

    From e4195e25c863ce6603dca0edecffb630938cfc43 Mon Sep 17 00:00:00 2001
    From: Vasilij Schneidermann <mail@vasilij.de>
    Date: Wed, 4 Mar 2020 22:01:46 +0100
    Subject: [PATCH] srfi-18: Quote build script variables
    
    ---
     srfi-18/0.1.5/build-srfi-18     | 2 +-
     srfi-18/0.1.5/build-srfi-18.bat | 4 ++--
     2 files changed, 3 insertions(+), 3 deletions(-)
     mode change 100644 => 100755 srfi-18/0.1.5/build-srfi-18
    
    diff --git a/srfi-18/0.1.5/build-srfi-18 b/srfi-18/0.1.5/build-srfi-18
    old mode 100644
    new mode 100755
    index 7f970c1..fde883a
    a b  
    11#!/bin/sh
    22
    3 if $CHICKEN_CSI -e "(if (symbol? #:foo) (exit 0) (exit 1))"; then
     3if "$CHICKEN_CSI" -e "(if (symbol? #:foo) (exit 0) (exit 1))"; then
    44    cp srfi-18.types.in srfi-18.types
    55    echo '(srfi-18#thread-wait-for-i/o! (#(procedure #:clean #:enforce) srfi-18#thread-wait-for-i/o! (fixnum #!optional symbol) undefined))' >> srfi-18.types
    66else
  • srfi-18/0.1.5/build-srfi-18.bat

    diff --git a/srfi-18/0.1.5/build-srfi-18.bat b/srfi-18/0.1.5/build-srfi-18.bat
    index 24972f6..227b64d 100644
    a b  
    11@echo off
    22
    3 %CHICKEN_CSI% -e "(if (symbol? #:foo) (exit 0) (exit 1))"
     3"%CHICKEN_CSI%" -e "(if (symbol? #:foo) (exit 0) (exit 1))"
    44
    55IF errorlevel 1 (
    66    copy srfi-18.types.in srfi-18.types
    IF errorlevel 1 ( 
    1010    echo ^(srfi-18#thread-wait-for-i/o! ^(#^(procedure #:clean #:enforce^) srfi-18#thread-wait-for-i/o! ^(fixnum #!optional symbol^) undefined^)^) >> srfi-18.types
    1111)
    1212
    13 %CHICKEN_CSC% -C %CFLAGS% -L %LDFLAGS% %*
     13"%CHICKEN_CSC%" -C "%CFLAGS%" -L "%LDFLAGS%" %*