6 export CFLAGS
="-Wall -Werror -Os -pipe -march=i686"
8 export libcurl_CFLAGS
="`$MINGW/bin/curl-config --cflags`"
9 export libcurl_LIBS
="`$MINGW/bin/curl-config --libs`"
11 export liblua_CFLAGS
="-I$MINGW/include"
12 export liblua_LIBS
="-L$MINGW/lib -llua51"
16 version
=`awk '/PACKAGE_VERSION = / {print $3}' Makefile`
17 archive
="quvi-$version-win32-i686-bin.7z"
18 distdir
="quvi-$version"
20 rm -rf dist quvi-
$version $archive \
21 && make install-strip \
23 && cp -v $MINGW/bin
/libcurl-4.dll dist
/bin \
24 && cp -v $MINGW/bin
/libiconv-2.dll dist
/bin \
25 && cp -v $MINGW/bin
/lua51.dll dist
/bin \
26 && mkdir
-p dist
/licenses \
27 && cp -v -r licenses dist
/licenses \
28 && mv dist
/share
/quvi
/lua dist
/bin \
29 && rm -r dist
/share
/man dist
/share
/quvi \
30 && rm -rf dist
/lib
/pkgconfig \
31 && cp -v ChangeLog dist
/ChangeLog.txt \
32 && cp -v ChangeLog.w32.txt dist
/ \
33 && cp -v ..
/NEWS dist
/NEWS.txt \
34 && cp -v man
1/quvi
.1.html dist
/share
/doc
/quvi \
36 && 7za a
$archive $distdir
41 make distclean
2>/dev
/null
42 rm -rf doc examples include lib src tests share man1 ChangeLog
58 if [ x
"$pack_flag" = "xon" ]; then
62 if [ x
"$clean_flag" = "xon" ]; then
69 --with-libiconv-prefix=$MINGW \