~bpierre/ubuntu-ui-toolkit/newbutton

« back to all changes in this revision

Viewing changes to export_qml_dir.sh

  • Committer: Pierre Bertet
  • Date: 2016-03-31 08:57:11 UTC
  • mfrom: (1851.1.64 staging)
  • Revision ID: pierre.bertet@canonical.com-20160331085711-i9tl9com945clp67
[sync] merge staging

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
 
1
#!/bin/sh
2
2
#
3
 
# Copyright 2012 - 2015 Canonical Ltd.
 
3
# Copyright 2012 - 2016 Canonical Ltd.
4
4
#
5
5
# This program is free software; you can redistribute it and/or modify
6
6
# it under the terms of the GNU Lesser General Public License as published by
15
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
16
#
17
17
 
18
 
. `dirname ${BASH_SOURCE[0]}`/build_paths.inc || return 1
 
18
# Get the current script directory (compatible with Bash and ZSH)
 
19
SCRIPT_DIR=`dirname ${BASH_SOURCE[0]-$0}`
 
20
SCRIPT_DIR=`cd $SCRIPT_DIR && pwd`
 
21
 
 
22
source "$SCRIPT_DIR/build_paths.inc" || return 1
19
23
export QML_IMPORT_PATH=$BUILD_DIR/qml
20
24
export QML2_IMPORT_PATH=$BUILD_DIR/qml
21
25
export UBUNTU_UI_TOOLKIT_THEMES_PATH=$BUILD_DIR/qml