Select Git revision
build.sh 682 B
#!/bin/sh
set -x -e
# programs installed
# chipcor chipextract chipcenter chippeak chippart chipscore bed2bed_display bed2sga compactsga countsga featreplace filter_counts sga2bed sga2wig
# check_bed.pl chr_replace_sga.pl eland2sga.pl fetch_sga.pl fps2sga.pl gff2sga.pl partit2bed.pl partit2gff.pl partit2sga.pl sga2fps.pl sga2gff.pl sga2wigSmooth_FS.pl
# Fix math round compilation issue
sed -i 's@\((LDFLAGS).*\)@\1 -lm@' tools/Makefile
export DESTDIR="${PREFIX}/"
make clean
make progs
cd tools/
make
cd ..
make install
#Fix Perl bang path
sed -i 's@#!.*perl@#!/usr/bin/env perl@' tools/*.pl
install tools/*.pl $DESTDIR/bin/
make install-man
make install-dat
make install-doc