summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-03-12 17:22:32 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-03-12 17:24:28 +0100
commit2b26ac2efca151ce00af66db9a57eea351fbd947 (patch)
tree14d137bfa358c8a29aaa0ed63d7e46a636852557 /solenv
parent15366dbf24311734a8eae4fb7e7dadaeec12ee56 (diff)
do not require full path when passing a pch header file to update
Change-Id: Ie1b0588cf6424e836f865cda9d4451aa0e1db32d
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/update_pch.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/solenv/bin/update_pch.sh b/solenv/bin/update_pch.sh
index fdb17a7ae288..84ff445468c6 100755
--- a/solenv/bin/update_pch.sh
+++ b/solenv/bin/update_pch.sh
@@ -7,6 +7,8 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
+# Usage: update_pch.sh [precompiled_xxx.hxx]
+
root=`dirname $0`
root=`cd $root/../.. && pwd`
@@ -19,7 +21,7 @@ fi
for x in $headers; do
header=$x
echo updating `echo $header | sed -e s%$root/%%`
- module=`echo $header | sed -e s%$root/%% -e s%/.*%%`
+ module=`readlink -f $header | sed -e s%$root/%% -e s%/.*%%`
name=`echo $header | sed -e s/.*precompiled_// -e s/\.hxx//`
makefile="Library_$name.mk"