From 7b69e00bcddd017b333aa7a9a7e9c913e8795586 Mon Sep 17 00:00:00 2001 From: Chris Elliott Date: Tue, 28 Aug 2007 08:28:23 +0000 Subject: [PATCH] try for dos line endings in dsw and dsp files git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- distrib/scripts/create_archives.sh | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/distrib/scripts/create_archives.sh b/distrib/scripts/create_archives.sh index 406f9aa728..5c6a9f8ce9 100755 --- a/distrib/scripts/create_archives.sh +++ b/distrib/scripts/create_archives.sh @@ -145,20 +145,24 @@ dospinport(){ copyfilelist $portfiles $APPDIR $TMPFILESDIR +# use DOS line endings for text files for MSW archives. if [ $port = "msw" ]; then FILES=`find . -type f \( -path '*/CVS/*' -prune -o -exec ${SCRIPTDIR}/is_text.sh {} \; -print \)` - echo "$FILES" > /tmp/textfiles + + else + FILES=`find . -name \*.ds?` fi + echo "$FILES" > /tmp/textfiles pushd /tmp/wx$port - # use DOS line endings for text files for MSW archives. - if [ $port = "msw" ]; then - pushd /tmp/wx$port/wx$portname-$VERSION - for file in `cat /tmp/textfiles`; do - unix2dos $file - done - popd - fi + + + pushd /tmp/wx$port/wx$portname-$VERSION + for file in `cat /tmp/textfiles`; do + unix2dos $file + done + popd + echo "Creating wx$portname-$VERSION.zip..." zip $ZIPFLAGS -r -9 $APPDIR/deliver/wx$portname-$VERSION.zip . echo "Creating wx$portname-$VERSION.tar.gz..."