From 05dc095ebcf6b95d1ebe0b32b4d9d79b1d83762b Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sat, 15 Dec 2018 14:34:36 +0100 Subject: [PATCH] mocks: Fix the mocks generation fix Turns out that I should have tested these with a new dependency instead of just submitting. `sed` was missing the s command. Signed-off-by: Christian Decker --- tools/mockup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mockup.sh b/tools/mockup.sh index 5be271cef..9b23d0b0a 100755 --- a/tools/mockup.sh +++ b/tools/mockup.sh @@ -33,5 +33,5 @@ for SYMBOL; do END=$(tail -n "+${LINE}" < "$FILE" | grep -n ';$'); NUM=${END%%:*} - tail -n "+${LINE}" < "$FILE" | head -n "$NUM" | sed 's/^extern *//' | sed 's/PRINTF_FMT([^)]*)//' | sed 's/NORETURN//g' | sed '/LAST_ARG_NULL//' | sed 's/,/ UNNEEDED,/g' | sed 's/\([a-z0-9A-Z*_]* [a-z0-9A-Z*_]*\));/\1 UNNEEDED);/' | sed "s/;\$/$STUB/" | sed 's/\s*$//' + tail -n "+${LINE}" < "$FILE" | head -n "$NUM" | sed 's/^extern *//' | sed 's/PRINTF_FMT([^)]*)//' | sed 's/NORETURN//g' | sed 's/LAST_ARG_NULL//g' | sed 's/,/ UNNEEDED,/g' | sed 's/\([a-z0-9A-Z*_]* [a-z0-9A-Z*_]*\));/\1 UNNEEDED);/' | sed "s/;\$/$STUB/" | sed 's/\s*$//' done