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
4027a6e7
Commit
4027a6e7
authored
Aug 02, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some other cosmetics
parent
a2654f8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
16 deletions
+29
-16
Sankore_3.1.pro
Sankore_3.1.pro
+0
-1
buildDebianPackage
buildDebianPackage
+29
-15
No files found.
Sankore_3.1.pro
View file @
4027a6e7
...
...
@@ -348,7 +348,6 @@ macx {
}
linux-g++
* {
message(LINUX)
CONFIG += link_prl
LIBS += -lcrypto
LIBS += -lX11
...
...
buildDebianPackage
View file @
4027a6e7
...
...
@@ -29,11 +29,25 @@ do
done
NOTIFY_CMD
=
`
which notify-send
`
notifyError
(){
notify-send
-t
0
"Error occoured"
"An error occours during the sankore build:
\n\t
$1
"
-i
/usr/share/icons/oxygen/64x64/status/dialog-error.png
if
[
-e
"
$NOTIFY_CMD
"
]
;
then
$NOTIFY_CMD
-t
0
-i
"/usr/share/icons/oxygen/64x64/status/dialog-error.png"
"
$1
"
else
printf
"
\0
33[31merror:
\0
33[0m
$1
\n
"
fi
exit
1
}
notifyProgress
(){
if
[
-e
"
$NOTIFY_CMD
"
]
;
then
$NOTIFY_CMD
"
$1
"
"
$2
"
else
printf
"
\0
33[32m--> Achieved task:
\0
33[0m
$1
:
\n\t
$2
\n
"
fi
}
alertIfPreviousVersionInstalled
(){
APT_CACHE
=
`
which apt-cache
`
if
[
!
-e
"
$APT_CACHE
"
]
;
then
...
...
@@ -67,7 +81,7 @@ if [ ! -e "$PLUGINS_PATH" ]; then
notifyError
"plugins path not found at
$PLUGINS_PATH
"
fi
notify
-send
"Open-Sankore"
"Building Open-Sankore ..."
notify
Progress
"Open-Sankore"
"Building Open-Sankore ..."
if
[
"
$ARCHITECTURE
"
==
"x86_64"
]
;
then
$QMAKE_PATH
Sankore_3.1.pro
-spec
linux-g++-64
...
...
@@ -77,14 +91,20 @@ fi
make
-j
4 release-install
notify-send
"Git Hub"
"Make a tag of the delivered version"
if
[
!
-e
"build/linux/release/product/Open-Sankore"
]
;
then
notifyError
"Open-Sankore build failed"
fi
notifyProgress
"Git Hub"
"Make a tag of the delivered version"
VERSION
=
`
cat
build/linux/release/version
`
if
[
!
-f
build/linux/release/version
]
;
then
notifyError
"version not found"
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
notifyProgress
creating a tag with the version
$VERSION
if
[
$MAKE_TAG
==
true
]
;
then
git tag
-a
"v
$VERSION
"
-m
"Generating setup for v
$VERSION
"
git push origin
--tags
...
...
@@ -97,7 +117,7 @@ chmod +x build/linux/release/product/run.sh
cp
-R
resources/linux/qtlinux/
*
build/linux/release/product/
notify
-send
"QT"
"Coping plugins and library ..."
notify
Progress
"QT"
"Coping plugins and library ..."
cp
-R
$PLUGINS_PATH
build/linux/release/product/
#copying custom qt library
...
...
@@ -136,7 +156,7 @@ else
cp
"
$QT_LIBRARY_SOURCE_PATH
/libQtWebKit.so.4.9.0"
"
$QT_LIBRARY_DEST_PATH
/"
fi
notify
-send
"QT"
"Internalization ..."
notify
Progress
"QT"
"Internalization ..."
if
[
!
-e
$GUI_TRANSLATIONS_DIRECTORY_PATH
]
;
then
notifyError
"gui translations pro file not found at:
$GUI_TRANSLATIONS_DIRECTORY_PATH
"
else
...
...
@@ -162,7 +182,7 @@ cd build/linux/release/product
find
.
-name
.svn
-exec
rm
-rf
{}
\;
2> /dev/null
cd
-
notify
-send
"Building Sankore"
"Finished to build Sankore building the package"
notify
Progress
"Building Sankore"
"Finished to build Sankore building the package"
BASE_WORKING_DIR
=
"packageBuildDir"
...
...
@@ -288,12 +308,6 @@ for l in `objdump -p $SANKORE_PACKAGE_DIRECTORY/Open-Sankore | grep NEEDED | awk
done
;
done
;
#additional dependencies
#tab[$count]="gtk2-engines-pixbuf"
#((count++))
#tab[$count]="ttf-mscorefonts-installer"
#((count++))
for
((
i
=
0
;
i<
${#
tab
[@]
}
;
i++
))
;
do
if
[
$i
-ne
"0"
]
;
then
echo
-n
", "
>>
"
$CONTROL_FILE
"
...
...
@@ -328,7 +342,7 @@ DEBIAN_PACKAGE_NAME="Open-Sankore_${VERSION}_$ARCHITECTURE.deb"
fakeroot
chown
-R
root:root
$BASE_WORKING_DIR
dpkg
-b
"
$BASE_WORKING_DIR
"
"install/linux/
$DEBIAN_PACKAGE_NAME
"
notify
-send
"Open-Sankore"
"Package built"
notify
Progress
"Open-Sankore"
"Package built"
#clean up mess
fakeroot
rm
-rf
$BASE_WORKING_DIR
...
...
@@ -341,6 +355,6 @@ if [ $CREATE_DIENA_DISTRIBUTION_ZIP == true ]; then
`
which zip
`
-1
--junk-paths
${
ZIP_NAME
}
${
DEBIAN_PACKAGE_NAME
}
../../ReleaseNotes.pdf ../../JournalDesModifications.pdf
cd
-
notify
-send
"Open-Sankore"
"Build Diena zip file for distribution"
notify
Progress
"Open-Sankore"
"Build Diena zip file for distribution"
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