Skip to content

Commit 00509b3

Browse files
committed
use os specific prefix
unable to replace files in /usr on osx
1 parent aa01ea8 commit 00509b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ script:
2222
- test -z "$commit" || git checkout $commit
2323
- git log -1
2424
- autoreconf -f -i
25-
- ./configure --prefix=/usr
25+
- case "$TRAVIS_OS_NAME" in osx) prefix=/usr/local;; linux) prefix=/usr;; esac
26+
- ./configure --prefix=$prefix
2627
- make -j4
2728
# remove system file package first
2829
# see https://github.com/file/file-tests/issues/3

0 commit comments

Comments
 (0)