annotate buildRelease.sh @ 788:f30150684ef9

buildRelease.sh: Small clean up. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1065 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Sun, 01 Jan 2012 15:24:42 +0000
parents 1eaff2eca50d
children
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
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
68 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
69 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
70 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
71 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
72 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
73 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
74 fi
787
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
75 QTDIR=`echo $TEST | sed 's/.* //'`
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
76 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
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
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
79 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
80
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
81 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
82 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
83 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
84 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
85 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
86 export QMAKESPEC
787
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
87 echo "QTDIR = $QTDIR"
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
88 echo "QMAKESPEC = $QMAKESPEC"
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
89 echo "pwd = `pwd`"
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
90 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
91 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
92
2922ce7885fb Set the 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 "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
94 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
95 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
96 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
97 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
98 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
99 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
100 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
101 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
102
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
103 # 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
104 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
105 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
106 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
107 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
108
2922ce7885fb Set the 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 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
110 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
111 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
112 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
113 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
114
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 # 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
116 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
117 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
118 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
119 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
120
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
121 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
122 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
123 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
124 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
125 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
126 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
127 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
128 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
129 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
130 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
131 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
132 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
133 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
134 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
135 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
136 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
137 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
138 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
139 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
140 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
141 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
142 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
143 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
144 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
145 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
146 # 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
147 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
148 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
149 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
150 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
151 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
152 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
153 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
154 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
155 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
156 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
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 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
159 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
160 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
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
2922ce7885fb Set the 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 # 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
164 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
165 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
166 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
167 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
168 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
169 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
170 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
171 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
172 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
173 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
174 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
175
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
176
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 ###################### 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
178 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
179
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
180
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
181 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
182 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
183 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
184 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
185 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
186 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
187 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
188 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
189 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
190 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
191 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
192 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
193 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
194 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
195 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
196 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 "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
198 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
199
2922ce7885fb Set the 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 "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
201 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
202 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
203 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
204 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
205 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
206 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
207 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
208 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
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
2922ce7885fb Set the 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 "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
212 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
213 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
214 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
215 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
216 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
217 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
218 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
219 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
220 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
221 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
222 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
223 # 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
224 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
225 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
226 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
227 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
228 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
229 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
230 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
231 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
232 fi
613
979dbc8fb5be Removing any backup files from the source package.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 605
diff changeset
233 # 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
234 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
235 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
236 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
237
422
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
238
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 "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
240 echo "----------------------------------------------------"
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
241 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
242 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
243 do
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
244 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
245 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
246 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
247 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
248 fi
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
249 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 "Done"
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
251 echo ""
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
252
0b5250f53fe9 The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 421
diff changeset
253
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
254 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
255 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
256 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
257 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
258 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
259 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
260 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
261 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
262 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
263
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
264 ###################### 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
265 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
266 ###################### 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
267
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
268 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
269 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
270 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
271 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
272 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
273 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
274 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
275 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
276 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
277 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
278 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
279 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
280 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
281 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
282 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
283 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
284
2922ce7885fb Set the 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 "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
286 echo "-------------"
660
bc00f26bf293 Adapted some files for the newly added indenter.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 629
diff changeset
287 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
288 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
289 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
290 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
291 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
292 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
293 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
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
2922ce7885fb Set the 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 "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
297 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
298 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
299 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
300 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
301 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
302 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
303 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
304 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
305 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
306 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
307 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
308 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
309 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
310 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
311
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
312 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
313 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
314 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
315 macdeployqt ./release/$targetName.app
787
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
316 cp -rf $QTDIR/Resources/qt_menu.nib ./release/UniversalIndentGUI.app/Contents/Resources/
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
317 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
318 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
319 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
320
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
321 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
322 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
323 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
324 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
325 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
326 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
327 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
328
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 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
330 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
331 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
332 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
333
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 # 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
335 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
336 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
337 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
338 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
339 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
340 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
341 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
342 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
343 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
344 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
345 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
346
2922ce7885fb Set the 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
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
348 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
349 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
350 # 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
351 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
352 # 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
353 if [ "$targetSystem" = "win32" ] || [ "$targetSystem" = "linux" ]; then
787
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
354 indenters="$indenters bcpp$ext bcpp.txt csstidy$ext f90ppr.exe f90ppr.txt greatcode.exe greatcode.txt htb.exe htb.html indent$ext indent.html phpCB.html phpCB.exe psti_license.txt psti_manual.html psti.exe tidy$ext tidy.html vbsbeaut_keywords_indent.txt vbsbeaut_keywords.txt vbsbeaut.bat vbsbeaut.exe"
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 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
356
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
357
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 if [ "$ext" = ".exe" ]; then
787
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
359 indenters="$indenters 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
360 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
361 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
362 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
363 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
364 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
365 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
366 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
367 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
368 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
369 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
370 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
371
787
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
372 if [ "$ext" = ".exe" ]; then
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
373 echo "Copying the Qt Dlls to the target dir"
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
374 echo "-------------------------------------"
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
375
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
376 qtdlls="QtCore4.dll QtGui4.dll QtNetwork4.dll QtScript4.dll qscintilla2.dll"
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
377 for i in $qtdlls
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
378 do
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
379 cp $QTDIR/lib/$i ./$targetDir/ &> /dev/null
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
380 if [ $? -gt 0 ]; then
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
381 echo "WARNING: Could not copy Qt dll \"$i\"!"
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
382 WARNINGOCCURRED=true
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
383 fi
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
384 done
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
385
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
386 echo "Copying the mingw Dlls to the target dir"
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
387 echo "----------------------------------------"
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
388
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
389 qtdlls="mingwm10.dll libgcc_s_dw2-1.dll"
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
390 for i in $qtdlls
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
391 do
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
392 cp $QTDIR/../../../../mingw/bin/$i ./$targetDir/ &> /dev/null
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
393 if [ $? -gt 0 ]; then
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
394 echo "WARNING: Could not copy Qt dll \"$i\"!"
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
395 WARNINGOCCURRED=true
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
396 fi
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
397 done
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
398 echo "Done"
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
399 echo ""
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
400 fi
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
401
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
402
2922ce7885fb Set the 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 "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
404 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
405 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
406 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
407 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
408 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
409 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
410 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
411 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
412 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
413 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
414 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
415 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
416 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
417
2922ce7885fb Set the 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 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
419 ###################### 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
420
2922ce7885fb Set the 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 ###################### 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
422
2922ce7885fb Set the 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 "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
424 echo "--------------------------------------------------------------"
787
1eaff2eca50d buildRelease.sh: Enhanced the environment settings output. Copying the qt_menu.nib to the Mac bundle. Added the to be copied indenters phpCB, psti and vbsbeau. Removed the no longer needed cygwin dll and PerlTidyLib.pm. On Windows copying the needed Qt dlls to the application path.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 773
diff changeset
425 indenters="hindent hindent.html JsDecoder.js perltidy 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
426 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
427 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
428 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
429 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
430 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
431 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
432 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
433 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
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 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
438 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
439 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
440 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
441 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
442 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
443 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
444 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
445 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
446
2922ce7885fb Set the 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
2922ce7885fb Set the 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 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
449 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
450 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
451 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
452 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
453 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
454 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
455 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
456 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
457
2922ce7885fb Set the 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
2922ce7885fb Set the 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 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
460 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
461 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
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 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
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 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
467 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
468
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
469
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
470 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
471 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
472 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
473 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
474 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
475 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
476 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
477 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
478 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
479 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
480 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
481 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
482 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
483
2922ce7885fb Set the 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
2922ce7885fb Set the 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 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
486 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
487 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
488 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
489 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
490 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
491 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
492 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
493 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
494 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
495 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
496 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
497 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
498 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
499 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
500 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
501 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
502 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
503 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
504 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
505 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
506
2922ce7885fb Set the 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
2922ce7885fb Set the 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 "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
509 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
510 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
511 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
512 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
513 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
514 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
515 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
516 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
517 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
518 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
519 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
520 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
521 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
522 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
523 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
524 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
525 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
526 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
527 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
528 # 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
529 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
530 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
531 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
532 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
533 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
534 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
535 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
536 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
537 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
538 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
539 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
540 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
541
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
542
2922ce7885fb Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents: 394
diff changeset
543 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
544 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
545 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
546 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
547 #read -p "press any key to continue"