From f9c54f366191b60ae2c0810345625c9c5e161858 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Fri, 8 May 2020 12:39:47 +0200 Subject: [PATCH] Don't use a script if a longer line is ok in meson.build --- meson.build | 4 ++-- scripts/getmanpath.sh | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100755 scripts/getmanpath.sh diff --git a/meson.build b/meson.build index 1c1a4b81..70e40f57 100644 --- a/meson.build +++ b/meson.build @@ -93,8 +93,8 @@ generated_deps = [ declare_dependency( link_with: static_library( 'generated' , command: [ find_program('xxd'), '-i', '@INPUT@', '@OUTPUT@' ] ) ] , [ custom_target( 'manpath' , output: 'manpath.c' - , input: 'scripts/getmanpath.sh' - , command: [ find_program('scripts/getmanpath.sh'), '@OUTPUT@' ] ) ] ) + , input: 'meson.build' + , command: [ find_program('sh'), '-c', 'echo \'const char *man_executable_path = "\'"$(which man)"\'";\' > @OUTPUT@' ] ) ] ) ) ] lib = static_library( 'lektor' diff --git a/scripts/getmanpath.sh b/scripts/getmanpath.sh deleted file mode 100755 index 84a088ce..00000000 --- a/scripts/getmanpath.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -# $1: output file -[ $# -ne 1 ] && exit 1 -echo "const char *man_executable_path = \"$(which man)\";" > "$1" -- GitLab