415dee4b01f3d60c9dfe1c2bb20045dc62fdfe81
kent
  Mon Mar 14 16:48:15 2011 -0700
Making a little utility to extract common regions from bed files.  Not bulletproof, but should abort on input it can't handle 99% of the time, and limitations are stated in usage.
diff --git src/utils/bedCommonRegions/makefile src/utils/bedCommonRegions/makefile
new file mode 100644
index 0000000..332c109
--- /dev/null
+++ src/utils/bedCommonRegions/makefile
@@ -0,0 +1,22 @@
+include ../../inc/common.mk
+
+L += -lm
+MYLIBDIR = ../../lib/${MACHTYPE}
+MYLIBS =  ${MYLIBDIR}/jkweb.a
+
+A = bedCommonRegions
+O = bedCommonRegions.o
+
+bedCommonRegions: ${O} ${MYLIBS}
+	${CC} ${COPT} -o ${DESTDIR}${BINDIR}/${A}${EXE} $O ${MYLIBS} $L
+	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
+
+compile:: ${O}
+	${CC} ${COPT} -o ${A}${EXE} ${O} ${MYLIBS} $L
+
+clean::
+	rm -f ${A}${EXE} ${O}
+
+test:
+	bedCommonRegions tests/in/1.bed tests/in/2.bed tests/in/3.bed > tests/out.bed
+	diff tests/expected.bed tests/out.bed