From 37ab190fbf2030686e5d841992fbc856c674ee78 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Tue, 18 Jul 2006 00:50:06 +0000 Subject: [PATCH] Moving to new approach that uses CVS entries to determine text/binary state of file. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- distrib/scripts/create_archives.sh | 20 +------------------- distrib/scripts/is_text.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100755 distrib/scripts/is_text.sh diff --git a/distrib/scripts/create_archives.sh b/distrib/scripts/create_archives.sh index 08d7a29d06..8bbacd6e92 100755 --- a/distrib/scripts/create_archives.sh +++ b/distrib/scripts/create_archives.sh @@ -135,25 +135,7 @@ dospinport(){ pushd /tmp/wx$port # use DOS line endings for text files for MSW archives. if [ $port = "msw" ]; then - find . -name \*.bkl -exec unix2dos {} \; - find . -name \*.bcc -exec unix2dos {} \; - find . -name \*.c -exec unix2dos {} \; - find . -name \*.cpp -exec unix2dos {} \; - find . -name \*.cxx -exec unix2dos {} \; - find . -name \*.dmc -exec unix2dos {} \; - find . -name \*.dms -exec unix2dos {} \; - find . -name \*.dsp -exec unix2dos {} \; - find . -name \*.dsw -exec unix2dos {} \; - find . -name \*.h -exec unix2dos {} \; - find . -name \*.htm* -exec unix2dos {} \; - find . -name \*.ini -exec unix2dos {} \; - find . -name \*.rc -exec unix2dos {} \; - find . -name \*.tex -exec unix2dos {} \; - find . -name \*.txt -exec unix2dos {} \; - find . -name \*.vc -exec unix2dos {} \; - find . -name \*.vcp -exec unix2dos {} \; - find . -name \*.vcw -exec unix2dos {} \; - find . -name \*.wat -exec unix2dos {} \; + find . -type f \( -path '*/CVS/*' -prune -o -exec $APPDIR/distrib/scripts/is_text.sh {} \; -print \) fi echo "Creating wx$portname-$VERSION.zip..." zip $ZIPFLAGS -r -9 $APPDIR/deliver/wx$portname-$VERSION.zip . diff --git a/distrib/scripts/is_text.sh b/distrib/scripts/is_text.sh new file mode 100755 index 0000000000..3b60daeade --- /dev/null +++ b/distrib/scripts/is_text.sh @@ -0,0 +1,18 @@ +#!/bin/sh +if [ $# != 1 ]; then + echo "Usage: $0 " >&2 + exit 2 +fi + +entries=`dirname $1`/CVS/Entries +if [ ! -f $entries ]; then + echo "CVS entries file \"$entries\" not found." >&2 + exit 3 +fi + +re="^/`basename $1`/.*/-kb/\$" +if grep -q "$re" $entries; then + exit 1 +fi + +exit 0 \ No newline at end of file