Skip to content

Commit

Permalink
Merge pull request #89 from vsimon/fix-abseil
Browse files Browse the repository at this point in the history
Fix packaging for revisions prior to the introduction of abseil-cpp
  • Loading branch information
vsimon authored Aug 17, 2018
2 parents 738cb0a + c9108ae commit 4bc7a6b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,12 @@ function package::prepare() {
headersSourceDir=.
fi
find $headersSourceDir -path './third_party*' -prune -o -name '*.h' -exec $CP --parents '{}' $headersDestDir ';'
pushd $headersSourceDir/third_party/abseil-cpp >/dev/null
find . -name '*.h' -exec $CP --parents '{}' $headersDestDir ';'
popd >/dev/null
# Revision 23941 introduced absl::optional from abseil-cpp
if [[ $revision_number -ge 23941 ]]; then
pushd $headersSourceDir/third_party/abseil-cpp >/dev/null
find . -name '*.h' -exec $CP --parents '{}' $headersDestDir ';'
popd >/dev/null
fi
popd >/dev/null
# find and copy libraries
pushd src/out >/dev/null
Expand Down

0 comments on commit 4bc7a6b

Please sign in to comment.