Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
86456a93
Commit
86456a93
authored
Apr 16, 2012
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Sankore-1.40' of github.com:Sankore/Sankore-3.1 into Sankore-1.40
parents
e624a2d4
49bb0555
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
release.macx.sh
release.macx.sh
+35
-2
No files found.
release.macx.sh
View file @
86456a93
...
...
@@ -14,6 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# ---------------------------------------------------------------------
BASE_TROLLTECH_DIRECTORY
=
/usr/local/Trolltech/Qt-4.7.3
# Executables
QMAKE
=
$BASE_TROLLTECH_DIRECTORY
/bin/qmake
...
...
@@ -28,6 +29,7 @@ LRELEASE=$BASE_TROLLTECH_DIRECTORY/bin/lrelease
# Directories
BUILD_DIR
=
"build/macx/release"
PRODUCT_DIR
=
"
$BUILD_DIR
/product"
BASE_QT_TRANSLATIONS_DIRECTORY
=
../Qt-sankore3.1/translations
function
notify
{
GROWLNOTIFY
=
`
which growlnotify
`
...
...
@@ -52,6 +54,31 @@ function checkExecutable {
fi
}
function
addQtTranslations
{
for
eachTranslation
in
`
ls
$BASE_QT_TRANSLATIONS_DIRECTORY
/qt_??.qm
`
do
# looking fo the language code for each qt translation file
languageCode
=
`
echo
$eachTranslation
|
sed
's/.*qt_\(.*\).qm/\1/'
`
basicDir
=
$PRODUCT_DIR
/Open-Sankore.app/Contents/Resources/
for
eachDirectory
in
`
ls
$basicDir
`
do
# looping through the Sankore availables languages
directoryLanguageCode
=
`
echo
$eachDirectory
|
sed
's/\(.*\)\.lproj/\1/'
`
if
[
!
-z
$directoryLanguageCode
]
;
then
if
[[
$eachDirectory
==
*
".lproj"
*
&&
$eachDirectory
!=
"empty.lproj"
&&
$directoryLanguageCode
==
*
$languageCode
*
]]
;
then
# sankore translation found for qt translation file
cp
$eachTranslation
$basicDir
/
$eachDirectory
if
[
$directoryLanguageCode
!=
$languageCode
]
;
then
# handling fr and fr_CH code.
mv
$basicDir
/
$eachDirectory
/qt_
$languageCode
.qm
$basicDir
/
$eachDirectory
/qt_
$directoryLanguageCode
.qm
fi
fi
fi
done
done
}
trap
"defaults write com.mnemis.Uniboard.release Running -bool NO"
EXIT
notify
"Running Uniboard release script (
`
date
`
)"
...
...
@@ -88,8 +115,14 @@ $QMAKE_CMD
notify
"Compiling ..."
make
-j4
release
notify
"Translations ..."
$LRELEASE
"Sankore_3.1.pro"
addQtTranslations
notify
"Tagging ..."
VERSION
=
`
cat
"
$BUILD_DIR
/version"
`
if
[
!
-f
"
$BUILD_DIR
/version"
]
;
then
echo
"version not found"
...
...
@@ -98,8 +131,8 @@ else
LAST_COMMITED_VERSION
=
"
`
git describe
$(
git rev-list
--tags
--max-count
=
1
)
`
"
if
[
"v
$VERSION
"
!=
"
$LAST_COMMITED_VERSION
"
]
;
then
echo
creating a tag with the version
$VERSION
git tag
-a
"v
$VERSION
"
-m
"Generated setup for v
$VERSION
"
git push origin
--tags
#
git tag -a "v$VERSION" -m "Generated setup for v$VERSION"
#
git push origin --tags
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment