From a7bb25a69eac939a4e197d82aa0dd0f324bed966 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Thu, 27 Feb 2014 20:28:04 -0500 Subject: .travis.sh --- .travis.sh | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.travis.sh b/.travis.sh index df76757..55af0eb 100755 --- a/.travis.sh +++ b/.travis.sh @@ -21,6 +21,7 @@ case "$1" in mv *.rpyc unrpyc npm config set tmp /tmp + ;; install) MAKEOPTS="-s ${MAKEOPTS}" @@ -63,18 +64,18 @@ case "$1" in cd .. cd apngasm-2.8 - patch -p1 <<-EOF - --- apngasm.c - +++ apngasm.c - @@ -29,6 +29,7 @@ - */^M - #include ^M - #include ^M - +#include ^M - #include "png.h" /* original (unpatched) libpng is ok */^M - #include "zlib.h"^M - ^M - EOF + patch -p1 < + #include ++#include + #include "png.h" /* original (unpatched) libpng is ok */ + #include "zlib.h" + +EOF make LDLIBS="$(pkg-config --libs libpng --libs zlib)" apngasm install -c -m755 apngasm /usr/local/bin cd .. -- cgit v1.2.3-70-g09d2