diff options
author | asanoaozora <fifitaneki@hotmail.com> | 2017-04-28 11:10:02 +0200 |
---|---|---|
committer | asanoaozora <fifitaneki@hotmail.com> | 2017-04-28 11:10:02 +0200 |
commit | e259ebe381a7d19b5ba629d2673f3ca657297bba (patch) | |
tree | c4e2a8fd4005331b3f459afadcf323035f0021fc /src/script | |
parent | 9524c507b6def7757c9a506afb0a2ac0b4790802 (diff) | |
download | navigation-e259ebe381a7d19b5ba629d2673f3ca657297bba.tar.gz |
fix zoom bug and reorganize hmi folder
Diffstat (limited to 'src/script')
-rwxr-xr-x | src/script/prepare.sh | 57 | ||||
-rwxr-xr-x | src/script/style_sheet_generator.sh | 93 |
2 files changed, 0 insertions, 150 deletions
diff --git a/src/script/prepare.sh b/src/script/prepare.sh deleted file mode 100755 index 2ba1d09..0000000 --- a/src/script/prepare.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -########################################################################### -# @licence app begin@ -# SPDX-License-Identifier: MPL-2.0 -# -# Component Name: fuel stop advisor application -# Author: Philippe Colliot <philippe.colliot@mpsa.com> -# -# Copyright (C) 2013-2014, PCA Peugeot Citroen -# -# License: -# This Source Code Form is subject to the terms of the -# Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with -# this file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# @licence end@ -########################################################################### -TOP_DIR=$PWD/.. -TOP_BIN_DIR=$TOP_DIR/../bin -SCRIPT_DIR=$PWD -TARGET_DIR=$TOP_DIR/hmi/qml/Core -STYLE_SHEETS_GENERATED_INDICATOR=$TARGET_DIR/style-sheets/the-style-sheets-have-been-generated-css.js - -function usage -{ - echo "Usage: prepare -i input_directory" - echo " prepare -c clean images and style sheets" - exit -} - -# Get input directory from the command line -if [ $# -ge 1 ]; then - if [ $1 = -h ]; then - usage - elif [ $1 = -i ]; then - shift - input_dir=$1 - elif [ $1 = -c ]; then - echo 'delete generated stuff' - rm -rf $TARGET_DIR/images/*.png - rm -rf $TARGET_DIR/style-sheets/*-css.js - exit - else - usage - fi -else - usage -fi - -echo "Prepare the style sheet of fuel stop advisor" -./style_sheet_generator.sh -i $input_dir -o ../hmi/qml/Core/ -v -nl - -echo "Create the empty file as an indicator" -touch $STYLE_SHEETS_GENERATED_INDICATOR - - diff --git a/src/script/style_sheet_generator.sh b/src/script/style_sheet_generator.sh deleted file mode 100755 index d1082b4..0000000 --- a/src/script/style_sheet_generator.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/bin/bash - -########################################################################### -# @licence app begin@ -# SPDX-License-Identifier: MPL-2.0 -# -# Component Name: fuel stop advisor application -# Author: Kang-Joon VERNIERS <kang-joon.verniers@awtce.be> -# -# Copyright (C) 2014, AISIN AW CO. -# -# License: -# This Source Code Form is subject to the terms of the -# Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with -# this file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# @licence end@ -########################################################################### - -function usage -{ - echo "Usage: style_sheet_generator -i input_directory -o output_directory -v|-nv -l|-nl" - echo "this style sheet generator requires Gimp and the generate_style_sheet.py plug-in to be installed" - echo $'\t' "-v: selects visible layers=TRUE" - echo $'\t' "-nv: selects visible layers=FALSE" - echo $'\t' "-l: generate xml log=TRUE" - echo $'\t' "-nl: generate xml log=FALSE" -} - -# Get input and output directories from the command line - -if [ $# != 6 -a $# != 3 -a $# != 1 ]; then - usage - exit 1 -fi - -while [ "$1" != "" ]; do - case $1 in - -i ) shift - input_dir=$1 - ;; - -o ) shift - output_dir=$1 - ;; - -h ) usage - exit - ;; - -v ) select_visible_layers=TRUE - ;; - -nv ) select_visible_layers=FALSE - ;; - -l ) generate_xml_log=TRUE - ;; - -nl ) generate_xml_log=FALSE - ;; - * ) usage - exit 1 - esac - shift -done - -echo "style_sheet_generator" -echo $'\t' "Input directory : " $input_dir -echo $'\t' "Output directory: " $output_dir -echo $'\t' "select_visible_layers: " $select_visible_layers -echo $'\t' "generate_xml_log: " $generate_xml_log - -echo -# Main processing, using Gimp and the generate_style_sheet.py plug-in -{ -cat <<EOF -(define (do-generate-style-sheet filename outputdir select_visible_layers generate_xml_log) - (let* ( - (image (car (gimp-file-load RUN-NONINTERACTIVE filename filename))) - (drawable (car (gimp-image-get-active-layer image))) - ) - (python-fu-generate-style-sheet RUN-NONINTERACTIVE image drawable select_visible_layers outputdir generate_xml_log) - (gimp-image-delete image) - ) -) -(gimp-message-set-handler 1) ; -EOF - -for file in $input_dir/*.xcf; do - echo "(gimp-message \"$file\")" - echo "(do-generate-style-sheet \"$file\" \"$output_dir\" $select_visible_layers $generate_xml_log)" -done - -echo "(gimp-quit 0)" -} | { -gimp -i -b - -} - |