Last active
August 29, 2015 14:01
-
-
Save hfwang/55061fe5d7945f980402 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# fail fast | |
set -e | |
# capture root dir | |
root=$(pwd) | |
# change into subdir of archive | |
cd $root/protobuf-* | |
# configure and compile | |
./configure --prefix /app/protobuf | |
make | |
make install | |
# remove source files | |
rm -rf $root/* | |
# copy build artifacts back into the root | |
cp -R /app/protobuf $root/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment