Skip to content

Commit

Permalink
preset: Move preset-related resources to separate directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleysepos committed Jun 26, 2016
1 parent 61aa2e0 commit f11a010
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libhb/preset.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions scripts/build-presets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit f11a010

Please sign in to comment.