Skip to content
Extraits de code Groupes Projets
Vérifiée Valider f9c54f36 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Don't use a script if a longer line is ok in meson.build

parent 4126bd38
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -93,8 +93,8 @@ generated_deps = [ declare_dependency( link_with: static_library( 'generated' ...@@ -93,8 +93,8 @@ generated_deps = [ declare_dependency( link_with: static_library( 'generated'
, command: [ find_program('xxd'), '-i', '@INPUT@', '@OUTPUT@' ] ) ] , command: [ find_program('xxd'), '-i', '@INPUT@', '@OUTPUT@' ] ) ]
, [ custom_target( 'manpath' , [ custom_target( 'manpath'
, output: 'manpath.c' , output: 'manpath.c'
, input: 'scripts/getmanpath.sh' , input: 'meson.build'
, command: [ find_program('scripts/getmanpath.sh'), '@OUTPUT@' ] ) ] ) , command: [ find_program('sh'), '-c', 'echo \'const char *man_executable_path = "\'"$(which man)"\'";\' > @OUTPUT@' ] ) ] )
) ] ) ]
lib = static_library( 'lektor' lib = static_library( 'lektor'
......
#!/bin/sh
# $1: output file
[ $# -ne 1 ] && exit 1
echo "const char *man_executable_path = \"$(which man)\";" > "$1"
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter