Mercurial > hg > forks > UniversalIndentGUI
annotate buildRelease.sh @ 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.
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1064 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Thu, 29 Dec 2011 14:53:54 +0000 |
parents | cc0fc2cd7611 |
children | f30150684ef9 |
rev | line source |
---|---|
396
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
1 #!/bin/sh |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
2 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
3 # Command line syntax: |
602
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
4 # buildRelease [targetsystem qtdir] [--rebuild] |
396
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
5 # Example: |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
6 # buildRelease win32 /c/qt.4.3.2 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
7 # Default values are targetsystem=src, qtdir="" |
602
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
8 # if "--rebuild" is set the release directory |
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
9 |
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
10 #TODO: Parse all input parameters to enable a flexible syntax. |
396
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
11 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
12 # 1. param is target system |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
13 if [ -n "$1" ]; then |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
14 targetSystem=$1 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
15 else |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
16 targetSystem="src" |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
17 fi |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
18 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
19 # 2. param, which is QTDIR |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
20 if [ -n "$2" ]; then |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
21 QTDIR=$2 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
22 fi |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
23 |
602
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
24 # 3. param is for setting "complete rebuild" to true |
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
25 if [ -n "$3" ] && [ "$3" = "--rebuild" ]; then |
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
26 COMPLETEREBUILD="true"; |
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
27 else |
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
28 COMPLETEREBUILD="false"; |
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
29 fi |
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
30 |
396
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
31 # Only allow the build targets win32, macx and linux. |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
32 if [ -n "$1" ] && [ ! "$1" = "win32" ] && [ ! "$1" = "macx" ] && [ ! "$1" = "linux" ] && [ ! "$1" = "src" ]; then |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
33 echo "ERROR: Build target \"$1\" not supported! Supported are win32, macx, linux and src." |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
34 exit 1 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
35 fi |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
36 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
37 if [ "$targetSystem" = "win32" ]; then |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
38 ext=".exe" |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
39 else |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
40 ext="" |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
41 fi |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
42 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
43 if [ "$targetSystem" = "win32" ] || [ "$targetSystem" = "macx" ]; then |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
44 targetName=UniversalIndentGUI # The targetname must be identical with the targetname set in the qmake project file. |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
45 else |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
46 targetName=universalindentgui # The targetname must be identical with the targetname set in the qmake project file. |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
47 fi |
421
f31f3877433d
changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
420
diff
changeset
|
48 |
396
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
49 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
50 # Configuration |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
51 # ------------- |
602
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
52 #TODO: get version from source code file. |
762
04d591e5ac1c
Adapted the release build scripts for the next version number, the change Japanese mnemonic and the subdirs within the src dir.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
738
diff
changeset
|
53 version=1.2.0 |
396
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
54 doSVNUpdate=false |
577
4aed81d111df
Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
572
diff
changeset
|
55 |
396
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
56 |
421
f31f3877433d
changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
420
diff
changeset
|
57 if [ "$targetSystem" = "src" ]; then |
f31f3877433d
changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
420
diff
changeset
|
58 targetDir=${targetName}-$version |
f31f3877433d
changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
420
diff
changeset
|
59 else |
f31f3877433d
changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
420
diff
changeset
|
60 targetDir=${targetName}_$targetSystem |
f31f3877433d
changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
420
diff
changeset
|
61 fi |
f31f3877433d
changed the build script to create correct source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
420
diff
changeset
|
62 |
577
4aed81d111df
Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
572
diff
changeset
|
63 # Set QTDIR for each platform if not given as command line parameter. |
602
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
64 #TODO: Check whether QTDIR is valid and qmake can be executed if QTDIR hasn't been set via command line. |
396
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
65 if [ "$targetSystem" = "win32" ] && [ ! -n "$2" ]; then |
602
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
66 echo "The QTDIR has not been set via command line parameter!" |
485d9e1e49cb
Changed the universal build script to have an optioen "--rebuild". If this one is set, the release dir will be deleted to completely rebuild the project. Otherwise only changed files will be compiled.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
601
diff
changeset
|
67 exit 1 |
577
4aed81d111df
Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
572
diff
changeset
|
68 QTDIR=/f/Qt/qt.4.4.3_gpl_static |
396
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
69 else |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
70 if [ "$targetSystem" = "macx" ] && [ ! -n "$2" ]; then |
738
e05fd24c4417
Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
711
diff
changeset
|
71 TEST=`qmake -v` |
e05fd24c4417
Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
711
diff
changeset
|
72 if [ "$?" -ne "0" ]; then |
e05fd24c4417
Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
711
diff
changeset
|
73 echo "The QTDIR has not been set via command line parameter!" |
e05fd24c4417
Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
711
diff
changeset
|
74 exit 1 |
e05fd24c4417
Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
711
diff
changeset
|
75 QTDIR=/Users/thomas/Documents/Informatik/qt-static-release |
e05fd24c4417
Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
711
diff
changeset
|
76 fi |
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
|
77 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
|
78 fi |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
79 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
|
80 |
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
|
81 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
|
82 |
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
|
83 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
|
84 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
|
85 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
|
86 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
|
87 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
|
88 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
|
89 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
|
90 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
|
91 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
|
92 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
|
93 echo "" |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
94 |
2922ce7885fb
Set the 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 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
|
96 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
|
97 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
|
98 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
|
99 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
|
100 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
|
101 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
|
102 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
|
103 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
|
104 |
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
|
105 # 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
|
106 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
|
107 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
|
108 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
|
109 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
|
110 |
2922ce7885fb
Set the 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 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
|
112 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
|
113 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
|
114 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
|
115 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
|
116 |
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 # 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
|
118 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
|
119 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
|
120 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
|
121 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
|
122 |
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
|
123 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
|
124 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
|
125 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
|
126 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
|
127 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
|
128 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
|
129 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
|
130 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
|
131 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
|
132 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
|
133 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
|
134 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
|
135 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
|
136 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
|
137 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
|
138 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
|
139 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
|
140 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
|
141 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
|
142 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
|
143 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
|
144 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
|
145 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
|
146 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
|
147 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
|
148 # 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
|
149 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
|
150 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
|
151 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
|
152 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
|
153 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
|
154 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
|
155 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
|
156 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
|
157 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
|
158 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
|
159 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
|
160 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
|
161 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
|
162 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
|
163 |
2922ce7885fb
Set the 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 |
2922ce7885fb
Set the 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 # 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
|
166 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
|
167 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
|
168 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
|
169 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
|
170 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
|
171 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
|
172 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
|
173 fi |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
174 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
|
175 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
|
176 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
|
177 |
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
|
178 |
4aed81d111df
Made some changes concerning the language detection on the very first start. Also updated the build scripts.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
572
diff
changeset
|
179 ###################### 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
|
180 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
|
181 |
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
|
182 |
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
|
183 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
|
184 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
|
185 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
|
186 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
|
187 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
|
188 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
|
189 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
|
190 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
|
191 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
|
192 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
|
193 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
|
194 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
|
195 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
|
196 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
|
197 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
|
198 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
|
199 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
|
200 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
|
201 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
202 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
|
203 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
|
204 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
|
205 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
|
206 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
|
207 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
|
208 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
|
209 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
|
210 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
|
211 |
2922ce7885fb
Set the 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 |
2922ce7885fb
Set the 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 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
|
214 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
|
215 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
|
216 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
|
217 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
|
218 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
|
219 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
|
220 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
|
221 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
|
222 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
|
223 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
|
224 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
|
225 # 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
|
226 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
|
227 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
|
228 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
|
229 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
|
230 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
|
231 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
|
232 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
|
233 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
|
234 fi |
613
979dbc8fb5be
Removing any backup files from the source package.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
605
diff
changeset
|
235 # 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
|
236 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
|
237 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
|
238 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
|
239 |
422
0b5250f53fe9
The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
421
diff
changeset
|
240 |
0b5250f53fe9
The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
421
diff
changeset
|
241 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
|
242 echo "----------------------------------------------------" |
0b5250f53fe9
The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
421
diff
changeset
|
243 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
|
244 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
|
245 do |
0b5250f53fe9
The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
421
diff
changeset
|
246 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
|
247 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
|
248 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
|
249 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
|
250 fi |
0b5250f53fe9
The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
421
diff
changeset
|
251 done |
0b5250f53fe9
The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
421
diff
changeset
|
252 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
|
253 echo "" |
0b5250f53fe9
The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
421
diff
changeset
|
254 |
0b5250f53fe9
The project files were missing in the source package
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
421
diff
changeset
|
255 |
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
|
256 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
|
257 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
|
258 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
|
259 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
|
260 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
|
261 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
|
262 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
|
263 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
|
264 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
|
265 |
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
|
266 ###################### 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
|
267 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
|
268 ###################### 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
|
269 |
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
|
270 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
|
271 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
|
272 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
|
273 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
|
274 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
|
275 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
|
276 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
|
277 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
|
278 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
|
279 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
|
280 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
|
281 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
|
282 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
|
283 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
|
284 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
|
285 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
|
286 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
287 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
|
288 echo "-------------" |
660
bc00f26bf293
Adapted some files for the newly added indenter.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
629
diff
changeset
|
289 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
|
290 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
|
291 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
|
292 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
|
293 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
|
294 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
|
295 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
|
296 |
2922ce7885fb
Set the 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 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
298 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
|
299 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
|
300 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
|
301 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
|
302 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
|
303 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
|
304 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
|
305 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
|
306 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
|
307 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
|
308 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
|
309 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
|
310 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
|
311 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
|
312 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
|
313 |
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
|
314 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
|
315 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
|
316 echo "-----------------------------------------------" |
e05fd24c4417
Updated the release script for Mac to use existing Qt installation by trying whether qmake exists. Also using macdeployqt to create a proper Mac application bundle containing all dependencies.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
711
diff
changeset
|
317 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
|
318 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
|
319 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
|
320 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
|
321 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
|
322 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
323 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
|
324 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
|
325 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
|
326 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
|
327 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
|
328 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
|
329 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
|
330 |
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 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
|
332 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
|
333 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
|
334 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
|
335 |
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 # 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
|
337 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
|
338 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
|
339 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
|
340 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
|
341 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
|
342 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
|
343 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
|
344 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
|
345 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
|
346 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
|
347 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
|
348 |
2922ce7885fb
Set the 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 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
350 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
|
351 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
|
352 # 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
|
353 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
|
354 # 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
|
355 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
|
356 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
|
357 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
|
358 |
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
|
359 |
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 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
|
361 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
|
362 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
|
363 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
|
364 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
|
365 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
|
366 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
|
367 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
|
368 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
|
369 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
|
370 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
|
371 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
|
372 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
|
373 |
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
|
374 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
|
375 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
|
376 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
|
377 |
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 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
|
379 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
|
380 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
|
381 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
|
382 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
|
383 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
|
384 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
|
385 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
|
386 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
|
387 |
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 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
|
389 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
|
390 |
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 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
|
392 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
|
393 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
|
394 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
|
395 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
|
396 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
|
397 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
|
398 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
|
399 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
|
400 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
|
401 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
|
402 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
|
403 |
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
|
404 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
405 echo "Copying the 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
|
406 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
|
407 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
|
408 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
|
409 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
|
410 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
|
411 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
|
412 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
|
413 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
|
414 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
|
415 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
|
416 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
|
417 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
|
418 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
|
419 |
2922ce7885fb
Set the 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 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
|
421 ###################### 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
|
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 ###################### 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
|
424 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
425 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
|
426 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
|
427 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
|
428 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
|
429 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
|
430 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
|
431 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
|
432 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
|
433 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
|
434 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
|
435 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
|
436 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
|
437 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
|
438 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
439 echo "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
|
440 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
|
441 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
|
442 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
|
443 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
|
444 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
|
445 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
|
446 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
|
447 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
|
448 |
2922ce7885fb
Set the 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 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
450 echo "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
|
451 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
|
452 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
|
453 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
|
454 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
|
455 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
|
456 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
|
457 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
|
458 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
|
459 |
2922ce7885fb
Set the 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 |
2922ce7885fb
Set the 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 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
|
462 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
|
463 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
|
464 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
|
465 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
|
466 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
|
467 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
|
468 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
|
469 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
|
470 |
2922ce7885fb
Set the 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 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
472 echo "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
|
473 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
|
474 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
|
475 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
|
476 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
|
477 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
|
478 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
|
479 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
|
480 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
|
481 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
|
482 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
|
483 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
|
484 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
|
485 |
2922ce7885fb
Set the 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 |
2922ce7885fb
Set the 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 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
|
488 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
|
489 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
|
490 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
|
491 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
|
492 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
|
493 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
|
494 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
|
495 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
|
496 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
|
497 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
|
498 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
|
499 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
|
500 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
|
501 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
|
502 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
|
503 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
|
504 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
|
505 fi |
396
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
506 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
|
507 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
|
508 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
509 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
510 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
|
511 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
|
512 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
|
513 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
|
514 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
|
515 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
|
516 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
|
517 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
|
518 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
|
519 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
|
520 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
|
521 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
|
522 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
|
523 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
|
524 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
|
525 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
|
526 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
|
527 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
|
528 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
|
529 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
|
530 # 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
|
531 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
|
532 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
|
533 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
|
534 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
|
535 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
|
536 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
|
537 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
|
538 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
|
539 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
|
540 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
|
541 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
|
542 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
|
543 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
544 |
2922ce7885fb
Set the SVN line ending property for some shell scripts to platform dependent.
thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
parents:
394
diff
changeset
|
545 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
|
546 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
|
547 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
|
548 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
|
549 #read -p "press any key to continue" |