ref: 53d9fc8057e943e2d724720b3491d22284ac1d26
parent: c20851ae53984b94203ef6ba15e14516526b9e86
author: robs <robs>
date: Sun Apr 26 07:55:49 EDT 2009
attempt to create a cygwin build script
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,6 +12,7 @@
dist_man_MANS = sox.1 soxi.1 soxformat.7 libsox.3
EXTRA_DIST = sox.txt soxi.txt soxformat.txt libsox.txt \
CMakeLists.txt sox.pc.in LICENSE.GPL LICENSE.LGPL \
+ cygbuild README.win32 scripts/batch-example.bat \
README.sh FEATURES.in
if HAVE_PKGCONFIG
--- /dev/null
+++ b/cygbuild
@@ -1,0 +1,40 @@
+#!/bin/sh
+
+if [ $# -ne 0 -o ! -r Makefile ]; then
+ ./configure \
+ --without-mp3 \
+ CC=gcc-4 \
+ CPPFLAGS=-I/usr/local/include \
+ LDFLAGS="-static -L/usr/local/lib" \
+ $*
+fi
+
+make -s all pdf
+
+dir="$(basename $(pwd))"
+rm -rf $dir $dir.zip
+mkdir -p $dir
+
+for f in ChangeLog LICENSE.GPL README README.win32; do
+ cp -p $f $dir/$f.txt
+ unix2dos $dir/$f.txt
+done
+
+binaries=$(for f in `cygcheck src/sox /usr/bin/wget|dos2unix`
+ do cygpath -u $f; done|sort|uniq|grep -v ^/cygdrive/)
+
+cp -p \
+ $binaries \
+ sox.pdf \
+ soxformat.pdf \
+ soxi.pdf \
+ libsox.pdf \
+ scripts/batch-example.bat \
+ $dir
+
+unix2dos $dir/batch-example.bat
+
+cp -p /etc/wgetrc $dir/wget.ini
+
+zip -r $dir.zip $dir
+rm -rf $dir