forked from marbl/canu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Operate off the release tarball, not git.
- Loading branch information
1 parent
f75deef
commit 7e2da52
Showing
1 changed file
with
26 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,32 +7,49 @@ if [ x$version = x ] ; then | |
exit | ||
fi | ||
|
||
git clone [email protected]:marbl/canu.git | ||
|
||
mv canu canu-$version | ||
# From the tarball | ||
|
||
if [ ! -e canu-$version.tar.gz ] ; then | ||
echo Fetch. | ||
curl -L -R -o canu-$version.tar.gz https://github.com/marbl/canu/archive/v$version.tar.gz | ||
fi | ||
if [ ! -d canu-$versioin ] ; then | ||
echo Unpack. | ||
gzip -dc canu-$version.tar.gz | tar -xf - | ||
fi | ||
cd canu-$version | ||
git tag v$version | ||
|
||
# From the repo | ||
|
||
#git clone [email protected]:marbl/canu.git | ||
#mv canu canu-$version | ||
#cd canu-$version | ||
#git tag v$version | ||
#git checkout v$version | ||
|
||
echo Build MacOS. | ||
cd src | ||
gmake -j 12 > ../Darwin-amd64.out 2>&1 | ||
cd ../.. | ||
|
||
rm -f canu-$version/linux.sh | ||
|
||
echo >> canu-$version/linux.sh \#\!/bin/bash | ||
echo >> canu-$version/linux.sh yum install -y git | ||
#echo >> canu-$version/linux.sh yum install -y git | ||
echo >> canu-$version/linux.sh cd /build/canu-$version/src | ||
echo >> canu-$version/linux.sh gmake -j 12 \> ../Linux-amd64.out 2\>\&1 | ||
echo >> canu-$version/linux.sh cd ../.. | ||
echo >> canu-$version/linux.sh tar -cf canu-$version/README* canu-$version.Darwin-amd64.tar canu-$version/Darwin-amd64 | ||
echo >> canu-$version/linux.sh tar -cf canu-$version/README* canu-$version.Linux-amd64.tar canu-$version/Linux-amd64 | ||
echo >> canu-$version/linux.sh rm -rf canu-$version/Darwin-amd64/obj | ||
echo >> canu-$version/linux.sh rm -rf canu-$version/Linux-amd64/obj | ||
echo >> canu-$version/linux.sh tar -cf canu-$version.Darwin-amd64.tar canu-$version/README* canu-$version/Darwin-amd64 | ||
echo >> canu-$version/linux.sh tar -cf canu-$version.Linux-amd64.tar canu-$version/README* canu-$version/Linux-amd64 | ||
|
||
chmod 755 canu-$version/linux.sh | ||
|
||
echo Build Linux and make tarballs. | ||
docker run -v `pwd`:/build -t -i --rm phusion/holy-build-box-64:latest /hbb_exe/activate-exec bash /build/canu-$version/linux.sh | ||
|
||
rm -rf canu-$version/*-amd64/obj | ||
|
||
echo Compress. | ||
xz -9v canu-$version.Darwin-amd64.tar | ||
xz -9v canu-$version.Linux-amd64.tar | ||
|
||
|