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
22c68beb
Commit
22c68beb
authored
May 03, 2011
by
Kindov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the setup script
parent
804d643f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
Sankore_3.1.pro
Sankore_3.1.pro
+2
-2
release.linux.sh
release.linux.sh
+7
-5
No files found.
Sankore_3.1.pro
View file @
22c68beb
...
@@ -12,8 +12,8 @@ VERSION_PATCH = 00
...
@@ -12,8 +12,8 @@ VERSION_PATCH = 00
VERSION
=
"$${VERSION_MAJ}.$${VERSION_MIN}.$${VERSION_TYPE}.$${VERSION_PATCH}"
VERSION
=
"$${VERSION_MAJ}.$${VERSION_MIN}.$${VERSION_TYPE}.$${VERSION_PATCH}"
VERSION
=
$$
replace
(
VERSION
,
"\\.r"
,
""
)
VERSION
=
$$
replace
(
VERSION
,
"\\.r"
,
""
)
SVN_VERSION
=
$$
system
(
svnversion
)
#
SVN_VERSION = $$system(svnversion)
SVN_VERSION
=
$$
replace
(
SVN_VERSION
,
"\\n"
,
""
)
#
SVN_VERSION = $$replace(SVN_VERSION, "\\n", "")
LONG_VERSION
=
"$${VERSION}.$${SVN_VERSION}"
LONG_VERSION
=
"$${VERSION}.$${SVN_VERSION}"
macx
:
OSX_VERSION
=
"$${VERSION} (r$${SVN_VERSION})"
macx
:
OSX_VERSION
=
"$${VERSION} (r$${SVN_VERSION})"
...
...
release.linux.sh
View file @
22c68beb
...
@@ -6,18 +6,18 @@ rm -rf build/linux/release/
...
@@ -6,18 +6,18 @@ rm -rf build/linux/release/
/usr/bin/qmake-qt4
/usr/bin/qmake-qt4
VERSION
=
`
cat
build/linux/release/version
`
VERSION
=
`
cat
build/linux/release/version
`
if
[
"
$VERSION
"
=
""
]
;
then
if
[
!
-f
build/linux/release/version
]
;
then
echo
"version not found"
echo
"version not found"
exit
1
exit
1
else
else
LAST_COMMITED_VERSION
=
"
`
git describe
$(
git rev-list
--tags
--max-count
=
1
)
`
"
LAST_COMMITED_VERSION
=
"
`
git describe
$(
git rev-list
--tags
--max-count
=
1
)
`
"
if
[
"v
$VERSION
"
!=
"
$LAST_COMMITED_VERSION
"
]
;
then
if
[
"v
$VERSION
"
!=
"
$LAST_COMMITED_VERSION
"
]
;
then
echo
creating a tag with the version
$VERSION
echo
creating a tag with the version
$VERSION
git tag
-a
"v
$VERSION
"
git tag
-a
"v
$VERSION
"
-m
"Generating setup for v
$VERSION
"
git push origin
--tags
git push origin
--tags
else
else
if
[
"
$1
"
!=
"escape"
]
;
then
if
[
"
$1
"
!=
"escape"
]
;
then
echo
"if you have already compiled a release (e.g. on a different os) please use the f
a
llowing command line"
echo
"if you have already compiled a release (e.g. on a different os) please use the f
o
llowing command line"
echo
sh release.linux.sh escape
echo
sh release.linux.sh escape
exit
2
exit
2
fi
fi
...
@@ -31,12 +31,14 @@ chmod +x build/linux/release/product/run.sh
...
@@ -31,12 +31,14 @@ chmod +x build/linux/release/product/run.sh
cp
-R
resources/linux/qtlinux/
*
build/linux/release/product/
cp
-R
resources/linux/qtlinux/
*
build/linux/release/product/
cp
-R
/usr/lib/qt4/plugins build/linux/release/product/
rm
-rf
install
/linux
rm
-rf
install
/linux
mkdir
-p
install
/linux
mkdir
-p
install
/linux
mv
build/linux/release/product build/linux/release/Sankore_3.1.
$VERSION
.
$SVN_REVISION
mv
build/linux/release/product build/linux/release/Sankore_3.1.
$VERSION
cd
build/linux/release
cd
build/linux/release
# "Removing .svn directories ..."
# "Removing .svn directories ..."
find
.
-name
.svn
-exec
rm
-rf
{}
\;
2> /dev/null
find
.
-name
.svn
-exec
rm
-rf
{}
\;
2> /dev/null
tar
cvzf ../../../install/linux/Sankore_3.1.
$VERSION
.
$SVN_REVISION
.tar.gz Sankore_3.1.
$VERSION
.
$SVN_REVI
SION
-C
.
tar
cvzf ../../../install/linux/Sankore_3.1.
$VERSION
.
tar.gz Sankore_3.1.
$VER
SION
-C
.
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