Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame^] | 1 | From f5a19ad9b2aea85dab28e7c61ac39404631fad2d Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 6 Jul 2022 04:54:23 -0700 |
| 4 | Subject: [PATCH] fontforgeexe: Use env to find fontforge |
| 5 | |
| 6 | This helps in avoiding to encode build paths into interpeter |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | fontforgeexe/CMakeLists.txt | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/fontforgeexe/CMakeLists.txt b/fontforgeexe/CMakeLists.txt |
| 15 | index b2d663b88..e2a8fee54 100644 |
| 16 | --- a/fontforgeexe/CMakeLists.txt |
| 17 | +++ b/fontforgeexe/CMakeLists.txt |
| 18 | @@ -118,7 +118,7 @@ if(UNIX) |
| 19 | foreach(_script fontimage.pe fontlint.pe sfddiff.pe) |
| 20 | get_filename_component(_output \"\${_script}\" NAME_WE) |
| 21 | file(READ \"${CMAKE_CURRENT_SOURCE_DIR}/\${_script}\" _input) |
| 22 | - file(WRITE \"${CMAKE_CURRENT_BINARY_DIR}/\${_output}\" \"#!\${CMAKE_INSTALL_PREFIX}/bin/fontforge -lang=ff\\n\${_input}\") |
| 23 | + file(WRITE \"${CMAKE_CURRENT_BINARY_DIR}/\${_output}\" \"#!/usr/bin/env fontforge -lang=ff\\n\${_input}\") |
| 24 | endforeach() |
| 25 | " COMPONENT nativescripts) |
| 26 | install(FILES "${CMAKE_CURRENT_BINARY_DIR}/fontimage" "${CMAKE_CURRENT_BINARY_DIR}/fontlint" "${CMAKE_CURRENT_BINARY_DIR}/sfddiff" |
| 27 | -- |
| 28 | 2.37.0 |
| 29 | |