Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65174455
build_xhpast.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jun 1, 12:35
Size
522 B
Mime Type
text/x-shellscript
Expires
Mon, Jun 3, 12:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18018817
Attached To
rPHU libphutil
build_xhpast.sh
View Options
#!/bin/bash
set
-e
ROOT
=
`
dirname
$0
`
"/../support/xhpast"
USE_GMAKE
=
1
command
-v gmake >/dev/null 2>&1
||
USE_GMAKE
=
0
echo
echo
"Building XHPAST..."
echo
cd
$ROOT
if
[
$USE_GMAKE
-eq 1
]
;
then
gmake clean all install
else
make clean all install
fi
echo
echo
"Testing xhpast works"
echo
if
! ./xhpast --version
then
echo
echo
>&2
"xhpast is broken :("
echo
>&2
"Maybe try \`STATIC=1 ./build_xhpast.sh\` if the error"
echo
>&2
"is linker-related?"
echo
exit
2
fi
echo
echo
"Build successful!"
echo
Event Timeline
Log In to Comment