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
edb9d897
Commit
edb9d897
authored
May 03, 2011
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new way of versioning Sankore 3.1
parent
2ae000e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
20 deletions
+30
-20
release.linux.sh
release.linux.sh
+13
-9
release.macx.sh
release.macx.sh
+17
-11
No files found.
release.linux.sh
View file @
edb9d897
#!/bin/sh
SVN_REVISION
=
`
svnversion
`
# only accept up to date, non modified, non switched svn revisions
if
echo
$SVN_REVISION
|
grep
-q
[
:MS]
then
echo
"bad subversion revision (
$SVN_REVISION
)"
# exit 1
fi
make clean
rm
-rf
build/linux/release/
#/usr/local/Trolltech/Qt-4.6.1/bin/qmake
/usr/bin/qmake-qt4
VERSION
=
`
cat
build/linux/release/version
`
if
[
"
$VERSION
"
=
""
]
;
then
echo
"version not found"
exit
1
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
"
git push origin
--tags
else
if
[
"
$1
"
!=
"escape"
]
;
then
echo
"if you have already compiled a release (e.g. on a different os) please use the fallowing command line"
echo
sh release.linux.sh escape
exit
2
fi
fi
fi
make
-j
4 release-install
...
...
release.macx.sh
View file @
edb9d897
...
...
@@ -69,18 +69,24 @@ QMAKE_CMD="$QMAKE -spec macx-g++42"
$QMAKE_CMD
VERSION
=
`
cat
"
$BUILD_DIR
/version"
`
if
[
"
$VERSION
"
==
""
]
;
then
abort
"version not found"
fi
SVN_REVISION
=
`
svnversion
`
# only accept up to date, non modified, non switched svn revisions
if
echo
$SVN_REVISION
|
grep
-q
[
:MS]
then
#warn "bad subversion revision ($SVN_REVISION)"
echo
"bad subversion revision (
$SVN_REVISION
)"
if
[
"
$VERSION
"
=
""
]
;
then
echo
"version not found"
exit
1
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
"
git push origin
--tags
else
if
[
"
$1
"
!=
"escape"
]
;
then
echo
"if you have already compiled a release (e.g. on a different os) please use the fallowing command line"
echo
sh release.macx.sh escape
exit
2
fi
fi
fi
# build
notify
"Compiling ..."
make
-j4
release
...
...
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