Skip to content

Commit 5b987f9

Browse files
chaotianmanolama
authored andcommitted
The symbolic of static content should use relative path (#349)
* Update Makefile.am The symbolic of static content should use relative path * Set the abs_srcdir and abs_builddir in runtime instead of compiling time Signed-off-by: Chris Larsen <[email protected]>
1 parent 1b16168 commit 5b987f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ gwttsd: staticroot
548548
$(mkdir_p) $(DEV_TSD_STATICROOT)
549549
cp $(dist_static_DATA:%=$(srcdir)/%) $(DEV_TSD_STATICROOT)
550550
find -L $(DEV_TSD_STATICROOT) -type l -exec rm {} \;
551-
p=`pwd`/gwt/queryui && cd $(DEV_TSD_STATICROOT) \
551+
p=../gwt/queryui && cd $(DEV_TSD_STATICROOT) \
552552
&& for i in $$p/*; do ln -s -f "$$i" || break; done
553553
find -L $(DEV_TSD_STATICROOT)/gwt -type f | xargs touch
554554
@touch .staticroot-stamp

tsdb.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ mydir=`dirname "$0"`
66
# Either:
77
# abs_srcdir and abs_builddir are set: we're running in a dev tree
88
# or pkgdatadir is set: we've been installed, we respect that.
9-
abs_srcdir='@abs_srcdir@'
10-
abs_builddir='@abs_builddir@'
9+
abs_srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."
10+
abs_builddir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1111
pkgdatadir='@pkgdatadir@'
1212
configdir='@configdir@'
1313
# Either we've been installed and pkgdatadir exists, or we haven't been

0 commit comments

Comments
 (0)