]> git.saurik.com Git - wxWidgets.git/commitdiff
Add a test for eol-native file existence in the release script.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Jul 2013 12:57:15 +0000 (12:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Jul 2013 12:57:15 +0000 (12:57 +0000)
Otherwise it could silently create a distribution with the files with wrong
EOLs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/tools/git-make-release

index c1089a14e4148641e471b7947c0868f6986c40b0..6dcfc9681f7f81902d76dd813493b6c134e1bb09 100755 (executable)
@@ -32,6 +32,12 @@ if [ -z "$version" ]; then
     exit 1
 fi
 
+EOL_FILE=../eol-native
+if [ ! -r "$EOL_FILE" ]; then
+    echo "Use build/tools/svn-find-native-eols.pl to generate $EOL_FILE." >&2
+    exit 1
+fi
+
 set -e
 set -x
 
@@ -61,7 +67,7 @@ tar cjf $prefix.tar.bz2 $prefix
 
 cd $prefix
 set +x
-for f in `cat ../eol-native`; do
+for f in `cat $EOL_FILE`; do
     case $f in
         */setup0.h)
             # we renamed this file above so adjust