Skip to content
Snippets Groups Projects
Commit 25153575 authored by Aaron Quinlan's avatar Aaron Quinlan
Browse files

Merge pull request #27 from nathanweeks/master

3 one-line changes to allow regression tests to run on OS X / BSD, and compilation on FreeBSD
parents be0e9cc4 42cc2dd4
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@
#ifndef _WIN32 // <-- source files only include the proper Net*_p.h, but this is a double-check
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/stat.h>
......
......@@ -36,6 +36,7 @@ rm obs exp
# Enforce coordinate sorted input.
###########################################################
echo " merge.t2...\c"
command -v tac 2>/dev/null || alias tac="sed '1!G;h;\$!d'"
tac a.bed | $BT merge -i - 2> obs
echo "ERROR: input file: (-) is not sorted by chrom then start.
The start coordinate at line 3 is less than the start at line 2" > exp
......@@ -67,7 +68,7 @@ echo \
*****
*****ERROR: No names found to report for the -names option. Exiting.
*****" > exp
$BT merge -i a.bed -nms &> obs
$BT merge -i a.bed -nms > obs 2>&1
check obs exp
rm obs exp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment