Minor improvements of desktop build scripts.
authorPiotr Tworek <p.tworek@samsung.com>
Thu, 18 Dec 2014 13:07:35 +0000 (14:07 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
commit661ea3791ff17601d2e4b4fcff73d0da047ddb13
tree175011886d2d29bf6baae44319d76fdac96fb380
parent94d990cbb7752511009c5f2743eaef8250d65e5a
Minor improvements of desktop build scripts.

This is a collection of small fixes I've recently made while playing
with chromium-efl build_desktop.sh script. Those are:
1. Improve argument parsing. Previous code needed 2 forks and a pipe to
   parse every single argument passed to the script. The same
   functionality can be achieved by only using shell built-in commands.
   It's more efficient and IMO easier to read.
2. Use integer comparison operations for variables which are supposed to
   have only integer values.
3. Clean-up script help message.
4. Use find instead of inefficient for loop to find files newer than
   jhbuild stamp.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=9215
Reviewed by: Antonio Gomes, Kamil Klimek

Change-Id: If390100b05a362f4ac33a63684210d7990533068
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
tizen_src/build/build_desktop.sh
tizen_src/build/common.sh