diff options
Diffstat (limited to 'scripts/build-presets.sh')
-rwxr-xr-x | scripts/build-presets.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build-presets.sh b/scripts/build-presets.sh index da729dd5b..c89da2d35 100755 --- a/scripts/build-presets.sh +++ b/scripts/build-presets.sh @@ -5,8 +5,9 @@ SELF="${BASH_SOURCE[0]}" BASE_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd -P) BASE_DIR="${BASE_DIR:-$(pwd)}" LIBHB_DIR="${BASE_DIR}/../libhb" +PRESETS_DIR="${BASE_DIR}/../preset" -if ! cd "${LIBHB_DIR}"; then +if ! cd "${PRESETS_DIR}"; then exit 1 fi @@ -16,11 +17,11 @@ if [[ "${JSON_TEMP:-}" == "" ]] || [[ "${C_TEMP:-}" == "" ]]; then echo "unable to create temporary file" >2 exit 1 fi -"${BASE_DIR}/create_resources.py" libhb_presets.list "${JSON_TEMP}" \ +"${BASE_DIR}/create_resources.py" preset_builtin.list "${JSON_TEMP}" \ && echo 'const char hb_builtin_presets_json[] =' > "${C_TEMP}" \ && "${BASE_DIR}/quotestring.py" "${JSON_TEMP}" >> "${C_TEMP}" \ && echo ';' >> "${C_TEMP}" \ -&& cp "${C_TEMP}" builtin_presets.h +&& cp "${C_TEMP}" "${LIBHB_DIR}/preset_builtin.h" rm "${JSON_TEMP}" "${C_TEMP}" exit 0 |