annotate buildRelease.sh @ 773:cc0fc2cd7611

Updated bcpp to the most recent version from 2009/06/30 git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1050 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Tue, 03 May 2011 20:25:39 +0000
parents 04d591e5ac1c
children 1eaff2eca50d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
1 #!/bin/sh
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
2
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
3 # Command line syntax:
602
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
4 # buildRelease [targetsystem qtdir] [--rebuild]
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
5 # Example:
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
6 # buildRelease win32 /c/qt.4.3.2
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
7 # Default values are targetsystem=src, qtdir=""
602
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
8 # if "--rebuild" is set the release directory
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
9
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
10 #TODO: Parse all input parameters to enable a flexible syntax.
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
11
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
12 # 1. param is target system
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
13 if [ -n "$1" ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
14 targetSystem=$1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
15 else
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
16 targetSystem="src"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
17 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
18
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
19 # 2. param, which is QTDIR
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
20 if [ -n "$2" ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
21 QTDIR=$2
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
22 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
23
602
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
24 # 3. param is for setting "complete rebuild" to true
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
25 if [ -n "$3" ] && [ "$3" = "--rebuild" ]; then
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
26 COMPLETEREBUILD="true";
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
27 else
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
28 COMPLETEREBUILD="false";
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
29 fi
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
30
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
31 # Only allow the build targets win32, macx and linux.
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
32 if [ -n "$1" ] && [ ! "$1" = "win32" ] && [ ! "$1" = "macx" ] && [ ! "$1" = "linux" ] && [ ! "$1" = "src" ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
33 echo "ERROR: Build target \"$1\" not supported! Supported are win32, macx, linux and src."
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
34 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
35 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
36
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
37 if [ "$targetSystem" = "win32" ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
38 ext=".exe"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
39 else
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
40 ext=""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
41 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
42
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
43 if [ "$targetSystem" = "win32" ] || [ "$targetSystem" = "macx" ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
44 targetName=UniversalIndentGUI # The targetname must be identical with the targetname set in the qmake project file.
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
45 else
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
46 targetName=universalindentgui # The targetname must be identical with the targetname set in the qmake project file.
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
47 fi
421
f31f3877433d changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 420
diff changeset
48
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
49
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
50 # Configuration
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
51 # -------------
602
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
52 #TODO: get version from source code file.
762
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
53 version=1.2.0
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
54 doSVNUpdate=false
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
55
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
56
421
f31f3877433d changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 420
diff changeset
57 if [ "$targetSystem" = "src" ]; then
f31f3877433d changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 420
diff changeset
58 targetDir=${targetName}-$version
f31f3877433d changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 420
diff changeset
59 else
f31f3877433d changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 420
diff changeset
60 targetDir=${targetName}_$targetSystem
f31f3877433d changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 420
diff changeset
61 fi
f31f3877433d changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 420
diff changeset
62
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
63 # Set QTDIR for each platform if not given as command line parameter.
602
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
64 #TODO: Check whether QTDIR is valid and qmake can be executed if QTDIR hasn't been set via command line.
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
65 if [ "$targetSystem" = "win32" ] && [ ! -n "$2" ]; then
602
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
66 echo "The QTDIR has not been set via command line parameter!"
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
67 exit 1
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
68 QTDIR=/f/Qt/qt.4.4.3_gpl_static
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
69 else
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
70 if [ "$targetSystem" = "macx" ] && [ ! -n "$2" ]; then
738
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
71 TEST=`qmake -v`
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
72 if [ "$?" -ne "0" ]; then
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
73 echo "The QTDIR has not been set via command line parameter!"
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
74 exit 1
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
75 QTDIR=/Users/thomas/Documents/Informatik/qt-static-release
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
76 fi
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
77 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
78 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
79
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
80 QMAKESPEC=${targetSystem}-g++
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
81
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
82 echo "Making some environment settings"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
83 echo "--------------------------------"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
84 export QTDIR
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
85 PATH=$QTDIR/bin:$PATH
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
86 export PATH
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
87 export QMAKESPEC
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
88 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
89 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
90
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
91
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
92 echo "Delete old target dir and create new one"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
93 echo "----------------------------------------"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
94 if [ -d "$targetDir" ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
95 rm -r $targetDir &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
96 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
97 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
98 echo "ERROR: Deleting dir $targetDir failed!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
99 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
100 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
101
397
65752d5b5d74 Changed the wait for old target dir deletion to wait until its gone and not blanket three seconds.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 396
diff changeset
102 # wait until the old target dir has been really deleted
65752d5b5d74 Changed the wait for old target dir deletion to wait until its gone and not blanket three seconds.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 396
diff changeset
103 while [ -d "$targetDir" ]
65752d5b5d74 Changed the wait for old target dir deletion to wait until its gone and not blanket three seconds.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 396
diff changeset
104 do
65752d5b5d74 Changed the wait for old target dir deletion to wait until its gone and not blanket three seconds.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 396
diff changeset
105 sleep 1
65752d5b5d74 Changed the wait for old target dir deletion to wait until its gone and not blanket three seconds.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 396
diff changeset
106 done
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
107
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
108 mkdir $targetDir &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
109 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
110 echo "ERROR: Creating dir $targetDir failed!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
111 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
112 fi
426
041e28575b3d Changed the build script to wait until the new target directory has been really created. Otherwise the follwing create dir commant could fail.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 425
diff changeset
113
041e28575b3d Changed the build script to wait until the new target directory has been really created. Otherwise the follwing create dir commant could fail.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 425
diff changeset
114 # wait until the new target dir has been really created
041e28575b3d Changed the build script to wait until the new target directory has been really created. Otherwise the follwing create dir commant could fail.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 425
diff changeset
115 while [ ! -d "$targetDir" ]
041e28575b3d Changed the build script to wait until the new target directory has been really created. Otherwise the follwing create dir commant could fail.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 425
diff changeset
116 do
041e28575b3d Changed the build script to wait until the new target directory has been really created. Otherwise the follwing create dir commant could fail.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 425
diff changeset
117 sleep 1
041e28575b3d Changed the build script to wait until the new target directory has been really created. Otherwise the follwing create dir commant could fail.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 425
diff changeset
118 done
041e28575b3d Changed the build script to wait until the new target directory has been really created. Otherwise the follwing create dir commant could fail.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 425
diff changeset
119
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
120 mkdir $targetDir/indenters &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
121 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
122 echo "ERROR: Creating dir indenters failed!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
123 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
124 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
125 mkdir $targetDir/doc &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
126 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
127 echo "ERROR: Creating dir doc failed!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
128 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
129 fi
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
130 mkdir $targetDir/doc/images &> /dev/null
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
131 if [ $? -gt 0 ]; then
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
132 echo "ERROR: Creating dir doc/images failed!"
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
133 exit 1
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
134 fi
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
135 mkdir $targetDir/translations &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
136 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
137 echo "ERROR: Creating dir translations failed!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
138 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
139 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
140 mkdir $targetDir/config &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
141 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
142 echo "ERROR: Creating dir config failed!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
143 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
144 fi
422
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
145 # In case of src as target system, create additional dirs.
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
146 if [ "$targetSystem" = "src" ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
147 mkdir $targetDir/resources &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
148 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
149 echo "ERROR: Creating dir resources failed!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
150 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
151 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
152 mkdir $targetDir/src &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
153 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
154 echo "ERROR: Creating dir src failed!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
155 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
156 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
157 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
158 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
159 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
160
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
161
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
162 # Maybe do a SubVersion update.
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
163 if [ "$doSVNUpdate" = "true" ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
164 echo "Calling svn update"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
165 echo "------------------"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
166 svn update
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
167 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
168 echo "ERROR: Calling svn update failed!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
169 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
170 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
171 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
172 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
173 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
174
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
175
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
176 ###################### source release begin ########################
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
177 if [ "$targetSystem" = "src" ]; then
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
178
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
179
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
180 echo "Updating the translation files"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
181 echo "------------------------------"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
182 lupdate src -ts ./translations/universalindent.ts &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
183 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
184 echo "ERROR: Could not update file \"universalindent.ts\"!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
185 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
186 fi
762
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
187 languages="de fr ja ru uk zh_TW"
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
188 for i in $languages
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
189 do
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
190 lupdate src -ts ./translations/universalindent_$i.ts &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
191 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
192 echo "ERROR: Could not update file \"universalindent_$i.ts\"!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
193 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
194 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
195 done
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
196 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
197 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
198
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
199 echo "Copying the translation files to the target translation dir"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
200 echo "-----------------------------------------------------------"
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
201 cp ./translations/universalindent*.ts ./$targetDir/translations/ &> /dev/null
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
202 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
203 echo "ERROR: Could not copy file \"universalindent.ts\"!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
204 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
205 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
206 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
207 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
208
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
209
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
210 echo "Copying the resources and src files to the target dir"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
211 echo "-----------------------------------------------------"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
212 cp ./resources/* ./$targetDir/resources/ &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
213 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
214 echo "ERROR: Could not copy dir \"resources\"!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
215 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
216 fi
762
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
217 cp -R ./src/* ./$targetDir/src/ &> /dev/null
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
218 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
219 echo "ERROR: Could not copy dir \"src\"!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
220 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
221 fi
762
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
222 # wait until the files have been really extracted
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
223 while [ ! -f "./$targetDir/src/UniversalIndentGUI_NPP/UniversalIndentGUI_NPPDialog.rc" ]
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
224 do
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
225 sleep 1
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
226 done
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
227 rm -Rf ./$targetDir/src/UniversalIndentGUI_NPP &> /dev/null
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
228 if [ $? -gt 0 ]; then
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
229 echo "ERROR: Could not delete dir \"UniversalIndentGUI_NPP\"!"
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
230 exit 1
04d591e5ac1c Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 738
diff changeset
231 fi
613
979dbc8fb5be Removing any backup files from the source package.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 605
diff changeset
232 # Deleting backup files
979dbc8fb5be Removing any backup files from the source package.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 605
diff changeset
233 rm ./$targetDir/src/*.*~ &> /dev/null
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
234 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
235 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
236
422
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
237
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
238 echo "Copying the indenter project files to the target dir"
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
239 echo "----------------------------------------------------"
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
240 projectfiles="UniversalIndentGUI.pro UniversalIndentGUI.sln VS8QtRules.rules UniversalIndentGUI.xcodeproj"
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
241 for i in $projectfiles
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
242 do
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
243 cp -r ./$i ./$targetDir/ &> /dev/null
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
244 if [ $? -gt 0 ]; then
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
245 echo "ERROR: Could not copy file \"$i\"!"
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
246 exit 1
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
247 fi
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
248 done
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
249 echo "Done"
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
250 echo ""
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
251
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
252
425
d88e5695f45e Updated the build scripts to correctly copy and create the man page.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 424
diff changeset
253 echo "Copying man page to target dir"
d88e5695f45e Updated the build scripts to correctly copy and create the man page.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 424
diff changeset
254 echo "------------------------------"
d88e5695f45e Updated the build scripts to correctly copy and create the man page.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 424
diff changeset
255 cp ./doc/universalindentgui.man ./$targetDir/doc/ &> /dev/null
d88e5695f45e Updated the build scripts to correctly copy and create the man page.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 424
diff changeset
256 if [ $? -gt 0 ]; then
d88e5695f45e Updated the build scripts to correctly copy and create the man page.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 424
diff changeset
257 echo "ERROR: Could not copy file \"/doc/universalindentgui.man\"!"
d88e5695f45e Updated the build scripts to correctly copy and create the man page.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 424
diff changeset
258 exit 1
d88e5695f45e Updated the build scripts to correctly copy and create the man page.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 424
diff changeset
259 fi
d88e5695f45e Updated the build scripts to correctly copy and create the man page.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 424
diff changeset
260 echo "Done"
d88e5695f45e Updated the build scripts to correctly copy and create the man page.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 424
diff changeset
261 echo ""
d88e5695f45e Updated the build scripts to correctly copy and create the man page.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 424
diff changeset
262
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
263 ###################### source release end ########################
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
264 else
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
265 ###################### binary release begin ########################
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
266
602
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
267 if [ -d "release" ] && [ "$COMPLETEREBUILD" = "true" ]; then
623
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
268 echo "Cleaning up release dirs and deleting makefiles"
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
269 echo "-----------------------------------------------"
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
270 rm -r release &> /dev/null
602
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
271 if [ $? -gt 0 ]; then
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
272 echo "ERROR: Could not delete release dir!"
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
273 exit 1
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
274 fi
623
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
275 rm Makefile* &> /dev/null
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
276 if [ $? -gt 0 ]; then
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
277 echo "ERROR: Could not delete the makefiles!"
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
278 exit 1
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
279 fi
602
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
280 echo "Done"
485d9e1e49cb Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 601
diff changeset
281 echo ""
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
282 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
283
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
284 echo "Calling qmake"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
285 echo "-------------"
660
bc00f26bf293 Adapted some files for the newly added indenter.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 629
diff changeset
286 qmake UniversalIndentGUI.pro
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
287 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
288 echo "ERROR: Calling qmake failed!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
289 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
290 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
291 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
292 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
293
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
294
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
295 echo "Calling make release"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
296 echo "--------------------"
623
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
297 if [ -f "Makefile.Release" ]; then
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
298 echo "calling \"make release --silent\""
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
299 make release --silent
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
300 else
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
301 echo "calling \"make --silent\""
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
302 make --silent
993f06e5d9fd Extended the build script to detect whether to call "make release" or just "make".
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 613
diff changeset
303 fi
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
304 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
305 echo "ERROR: Calling make release failed!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
306 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
307 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
308 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
309 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
310
738
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
311 if [ "$targetSystem" = "macx" ]; then
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
312 echo "Executing macdeployqt ./release/$targetName.app"
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
313 echo "-----------------------------------------------"
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
314 macdeployqt ./release/$targetName.app
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
315 echo "Done"
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
316 echo ""
e05fd24c4417 Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 711
diff changeset
317 fi
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
318
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
319 echo "Copying ${targetName}$ext to target dir"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
320 echo "--------------------------------------------"
525
7ddcb70d6d12 Adapted the universal build script to work for mac os x universal binaries.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 513
diff changeset
321 if [ "$targetSystem" = "macx" ]; then
7ddcb70d6d12 Adapted the universal build script to work for mac os x universal binaries.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 513
diff changeset
322 cp -R ./release/$targetName.app ./$targetDir/ &> /dev/null
7ddcb70d6d12 Adapted the universal build script to work for mac os x universal binaries.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 513
diff changeset
323 else
7ddcb70d6d12 Adapted the universal build script to work for mac os x universal binaries.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 513
diff changeset
324 cp ./release/$targetName$ext ./$targetDir/ &> /dev/null
7ddcb70d6d12 Adapted the universal build script to work for mac os x universal binaries.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 513
diff changeset
325 fi
7ddcb70d6d12 Adapted the universal build script to work for mac os x universal binaries.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 513
diff changeset
326
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
327 if [ $? -gt 0 ]; then
525
7ddcb70d6d12 Adapted the universal build script to work for mac os x universal binaries.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 513
diff changeset
328 echo "ERROR: Could not copy file \"$targetName$ext\" \"./$targetDir/\"!"
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
329 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
330 fi
661
b42ae513d7ae Added command to build script to compress the resulting executable using UPX.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 660
diff changeset
331
b42ae513d7ae Added command to build script to compress the resulting executable using UPX.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 660
diff changeset
332 # Try to compress the executable with UPX.
b42ae513d7ae Added command to build script to compress the resulting executable using UPX.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 660
diff changeset
333 if [ "$targetSystem" = "win32" ] || [ "$targetSystem" = "linux" ]; then
b42ae513d7ae Added command to build script to compress the resulting executable using UPX.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 660
diff changeset
334 echo "Trying to compress the executalbe using UPX."
b42ae513d7ae Added command to build script to compress the resulting executable using UPX.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 660
diff changeset
335 upx$ext --best ./$targetDir/$targetName$ext &> /dev/null
b42ae513d7ae Added command to build script to compress the resulting executable using UPX.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 660
diff changeset
336 fi
b42ae513d7ae Added command to build script to compress the resulting executable using UPX.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 660
diff changeset
337 if [ $? -gt 0 ]; then
b42ae513d7ae Added command to build script to compress the resulting executable using UPX.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 660
diff changeset
338 echo "Compressing the executable using UPX failed. Perhaps UPX doesn't exist."
b42ae513d7ae Added command to build script to compress the resulting executable using UPX.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 660
diff changeset
339 else
b42ae513d7ae Added command to build script to compress the resulting executable using UPX.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 660
diff changeset
340 echo "Compressed the executable using UPX."
b42ae513d7ae Added command to build script to compress the resulting executable using UPX.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 660
diff changeset
341 fi
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
342 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
343 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
344
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
345
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
346 echo "Copying the indenter executable files to the target indenters dir"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
347 echo "-----------------------------------------------------------------"
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
348 # This list does not include script based indenters. These are copied somewhere below.
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
349 indenters="astyle$ext astyle.html uncrustify$ext uncrustify.txt xmlindent$ext xmlindent.txt"
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
350 # For win32 and Linux add some indenters that do not run or exist under MaxOSX
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
351 if [ "$targetSystem" = "win32" ] || [ "$targetSystem" = "linux" ]; then
660
bc00f26bf293 Adapted some files for the newly added indenter.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 629
diff changeset
352 indenters="$indenters bcpp$ext bcpp.txt csstidy$ext f90ppr.exe f90ppr.txt greatcode.exe greatcode.txt htb.exe htb.html indent$ext indent.html tidy$ext tidy.html"
525
7ddcb70d6d12 Adapted the universal build script to work for mac os x universal binaries.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 513
diff changeset
353 fi
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
354
525
7ddcb70d6d12 Adapted the universal build script to work for mac os x universal binaries.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 513
diff changeset
355
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
356 if [ "$ext" = ".exe" ]; then
773
cc0fc2cd7611 Updated bcpp to the most recent version from 2009/06/30
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 762
diff changeset
357 indenters="$indenters cygwin1.dll libiconv-2.dll libintl-2.dll"
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
358 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
359 for i in $indenters
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
360 do
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
361 cp ./indenters/$i ./$targetDir/indenters/ &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
362 if [ $? -gt 0 ]; then
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
363 echo "WARNING: Could not copy indenter file \"$i\"!"
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
364 WARNINGOCCURRED=true
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
365 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
366 done
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
367 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
368 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
369
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
370
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
371 echo "Copying the translation binaries to the target translation dir"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
372 echo "--------------------------------------------------------------"
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
373 cp ./translations/qt_*.qm ./$targetDir/translations/ &> /dev/null
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
374 if [ $? -gt 0 ]; then
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
375 echo "ERROR: Could not copy file \"qt_*.qm\"!"
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
376 exit 1
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
377 fi
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
378 cp ./translations/universalindent_*.qm ./$targetDir/translations/ &> /dev/null
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
379 if [ $? -gt 0 ]; then
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
380 echo "ERROR: Could not copy file \"universalindent_*.qm\"!"
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
381 exit 1
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
382 fi
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
383 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
384 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
385
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
386 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
387 ###################### binary release end ########################
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
388
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
389 ###################### Steps to be done for all ########################
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
390
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
391 echo "Copying the script based indenters to the target indenters dir"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
392 echo "--------------------------------------------------------------"
605
2dc3ee4bcaf5 The file php_beautifier.html should not be included by default, since it can only be properly installed via pear installer.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 602
diff changeset
393 indenters="hindent hindent.html JsDecoder.js perltidy PerlTidyLib.pm phpStylist.php phpStylist.txt pindent.py pindent.txt rbeautify.rb ruby_formatter.rb shellindent.awk"
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
394 for i in $indenters
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
395 do
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
396 cp ./indenters/$i ./$targetDir/indenters/ &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
397 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
398 echo "ERROR: Could not copy file \"$i\"!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
399 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
400 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
401 done
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
402 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
403 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
404
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
405 echo "Copying the indenter example files to the target indenters dir"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
406 echo "--------------------------------------------------------------"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
407 cp ./indenters/example.* ./$targetDir/indenters/ &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
408 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
409 echo "ERROR: Could not copy the example.* files!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
410 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
411 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
412 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
413 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
414
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
415
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
416 echo "Copying the indenter uigui ini files to the target indenters dir"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
417 echo "----------------------------------------------------------------"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
418 cp ./indenters/uigui*.ini ./$targetDir/indenters/ &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
419 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
420 echo "ERROR: Could not copy the uigui*.ini files!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
421 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
422 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
423 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
424 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
425
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
426
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
427 echo "Copying the default syntax highlight ini file to the target config dir"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
428 echo "----------------------------------------------------------------------"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
429 cp ./config/UiGuiSyntaxHighlightConfig.ini ./$targetDir/config/ &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
430 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
431 echo "ERROR: Could not copy the UiGuiSyntaxHighlightConfig.ini file!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
432 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
433 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
434 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
435 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
436
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
437
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
438 echo "Copying some other files (README, CHANGELOG etc)"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
439 echo "------------------------------------------------"
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
440 otherfiles="CHANGELOG.txt LICENSE.GPL INSTALL.txt readme.html"
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
441 for i in $otherfiles
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
442 do
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
443 cp ./$i ./$targetDir/ &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
444 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
445 echo "ERROR: Could not copy file \"$i\"!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
446 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
447 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
448 done
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
449 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
450 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
451
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
452
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
453 echo "Copying doc to target dir"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
454 echo "-------------------------"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
455 docfiles="iniFileFormat.html"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
456 if [ ! "$ext" = ".exe" ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
457 indenters="$docfiles universalindentgui.man"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
458 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
459 for i in $docfiles
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
460 do
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
461 cp ./doc/$i ./$targetDir/doc/ &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
462 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
463 echo "ERROR: Could not copy file \"$i\"!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
464 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
465 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
466 done
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
467 cp ./doc/images/* ./$targetDir/doc/images/ &> /dev/null
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
468 if [ $? -gt 0 ]; then
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
469 echo "ERROR: Could not copy files from directory doc/images !"
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
470 exit 1
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
471 fi
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
472 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
473 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
474
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
475
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
476 echo "Packing the whole target dir"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
477 echo "----------------------------"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
478 if [ "$ext" = ".exe" ]; then
513
9fa36a1b5181 Added an echo command before the zip call in the universal shell build script.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 465
diff changeset
479 echo "Doing: zip -r9 ${targetName}_${version}_$targetSystem.zip $targetDir"
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
480 zip -r9 ${targetName}_${version}_$targetSystem.zip $targetDir &> /dev/null
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
481 if [ $? -gt 0 ]; then
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
482 echo "ERROR: Could not create archive \"${targetName}_${version}_$targetSystem.zip\"!"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
483 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
484 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
485 else
421
f31f3877433d changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 420
diff changeset
486 if [ "$targetSystem" = "src" ]; then
422
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
487 targetArchiveName=${targetName}-${version}.tar
421
f31f3877433d changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 420
diff changeset
488 else
424
a050870b60b6 Again a small change for the universal build script
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 422
diff changeset
489 targetArchiveName=${targetName}_${version}_$targetSystem.tar
421
f31f3877433d changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 420
diff changeset
490 fi
422
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
491 tar cf $targetArchiveName $targetDir &> /dev/null
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
492 if [ $? -gt 0 ]; then
421
f31f3877433d changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 420
diff changeset
493 echo "ERROR: Could not create archive \"$targetArchiveName\"!"
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
494 exit 1
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
495 fi
465
eb09281af924 Improved the build script to correctly create a Zip from the tar file by waiting until the tar file has been created.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 462
diff changeset
496 # wait until the tar file has been created
eb09281af924 Improved the build script to correctly create a Zip from the tar file by waiting until the tar file has been created.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 462
diff changeset
497 while [ ! -f "$targetArchiveName" ]
eb09281af924 Improved the build script to correctly create a Zip from the tar file by waiting until the tar file has been created.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 462
diff changeset
498 do
eb09281af924 Improved the build script to correctly create a Zip from the tar file by waiting until the tar file has been created.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 462
diff changeset
499 sleep 1
eb09281af924 Improved the build script to correctly create a Zip from the tar file by waiting until the tar file has been created.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 462
diff changeset
500 done
422
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
501 gzip -9 -f $targetArchiveName
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
502 if [ $? -gt 0 ]; then
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
503 echo "ERROR: Could not create archive \"$targetArchiveName.gz\"!"
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
504 exit 1
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
505 fi
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
506 fi
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
507 echo "Done"
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
508 echo ""
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
509
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
510
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
511 echo "Everything completed successfully!"
577
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
512 if [ "$WARNINGOCCURRED" = "true" ]; then
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
513 echo "====> But there were some warnings. Please check that!"
4aed81d111df Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 572
diff changeset
514 fi
396
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
515 #read -p "press any key to continue"