Skip to content

Commit

Permalink
Merge pull request #79 from thought-machine/fix-sh-binary-bug-2
Browse files Browse the repository at this point in the history
Fix sh binary bug 2
  • Loading branch information
fsiddiqia committed May 9, 2016
2 parents 55deaa1 + d0a2e43 commit 5e5af85
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 2.1.2
-------------
* Fixes one more bug with sh_binary where paths were taken to be relative when they were absolute.

Version 2.1.1
-------------
* Fixes bug with sh_binary not ignoring the main script properly when generating the tarball.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.1
2.1.2
2 changes: 1 addition & 1 deletion src/parse/rules/sh_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def sh_binary(name, main, deps=None, visibility=None):
# Inject the tar ball boundary.
'echo "%s" >> $OUT' % (_SH_BINARY_TMPL_SUFFIX % tmpl_vars),
# Compress the dependent files and dump out into the bash script.
'find $TMP_DIR -type f | grep -v $SRCS | grep -v $OUT | sed "s/^\.\///g" | tar zc -f - --files-from - >> $OUT',
'find . -type f | grep -v $SRCS | grep -v $(echo $OUT | sed "s/$TMP_DIR//g") | sed "s/^\.\///g" | tar zc -f - --files-from - >> $OUT',
])

build_rule(
Expand Down

0 comments on commit 5e5af85

Please sign in to comment.