For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "builtin_presets.h"
+#include "preset_builtin.h"
#include "hb.h"
#include "hb_dict.h"
#include "plist.h"
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
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