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
806916d2
Commit
806916d2
authored
Jul 30, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update the linux build script to procude a diena specific zip
parent
e9885cf4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
10 deletions
+43
-10
JournalDesModifications.pdf
JournalDesModifications.pdf
+0
-0
ReleaseNotes.pdf
ReleaseNotes.pdf
+0
-0
buildDebianPackage
buildDebianPackage
+23
-5
buildDebianPackageQmake-Qt4
buildDebianPackageQmake-Qt4
+20
-5
No files found.
JournalDesModifications.pdf
0 → 100644
View file @
806916d2
File added
ReleaseNotes.pdf
0 → 100644
View file @
806916d2
File added
buildDebianPackage
View file @
806916d2
...
...
@@ -15,12 +15,19 @@
# ---------------------------------------------------------------------
MAKE_TAG
=
true
CREATE_DIENA_DISTRIBUTION_ZIP
=
false
if
[
$#
==
"1"
]
;
then
if
[
$1
==
"notag"
]
;
then
for
var
in
"
$@
"
do
if
[
$var
==
"notag"
]
;
then
MAKE_TAG
=
false
;
fi
fi
if
[
$var
==
"diena"
]
;
then
CREATE_DIENA_DISTRIBUTION_ZIP
=
true
;
fi
done
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
...
...
@@ -39,7 +46,6 @@ alertIfPreviousVersionInstalled(){
fi
}
alertIfPreviousVersionInstalled
...
...
@@ -318,11 +324,23 @@ chmod 755 "$BASE_WORKING_DIR/DEBIAN/prerm"
chmod
755
"
$BASE_WORKING_DIR
/DEBIAN/postint"
mkdir
-p
"install/linux"
DEBIAN_PACKAGE_NAME
=
"Open-Sankore_
${
VERSION
}
_
$ARCHITECTURE
.deb"
fakeroot
chown
-R
root:root
$BASE_WORKING_DIR
dpkg
-b
"
$BASE_WORKING_DIR
"
install
/linux/Open-Sankore_
${
VERSION
}
_
$ARCHITECTURE
.deb
dpkg
-b
"
$BASE_WORKING_DIR
"
"install/linux/
$DEBIAN_PACKAGE_NAME
"
notify-send
"Open-Sankore"
"Package built"
#clean up mess
fakeroot
rm
-rf
$BASE_WORKING_DIR
if
[
$CREATE_DIENA_DISTRIBUTION_ZIP
==
true
]
;
then
ZIP_NAME
=
"Open-Sankoré_
`
lsb_release
-is
`
_
`
lsb_release
-rs
`
_
${
VERSION
}
_
${
ARCHITECTURE
}
.zip"
cd install
/linux
`
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"
fi
buildDebianPackageQmake-Qt4
View file @
806916d2
...
...
@@ -21,13 +21,18 @@ notifyError(){
}
MAKE_TAG
=
true
CREATE_DIENA_DISTRIBUTION_ZIP
=
false
if
[
$#
==
"1"
]
;
then
if
[
$1
==
"notag"
]
;
then
for
var
in
"
$@
"
do
if
[
$var
==
"notag"
]
;
then
MAKE_TAG
=
false
;
fi
fi
if
[
$var
==
"diena"
]
;
then
CREATE_DIENA_DISTRIBUTION_ZIP
=
true
;
fi
done
alertIfPreviousVersionInstalled
(){
APT_CACHE
=
`
which apt-cache
`
...
...
@@ -320,11 +325,21 @@ chmod 755 "$BASE_WORKING_DIR/DEBIAN/prerm"
chmod
755
"
$BASE_WORKING_DIR
/DEBIAN/postint"
mkdir
-p
"install/linux"
DEBIAN_PACKAGE_NAME
=
"Open-Sankore_
${
VERSION
}
_
$ARCHITECTURE
.deb"
fakeroot
chown
-R
root:root
$BASE_WORKING_DIR
dpkg
-b
"
$BASE_WORKING_DIR
"
install
/linux/Open-Sankore_
${
VERSION
}
_
$ARCHITECTURE
.deb
dpkg
-b
"
$BASE_WORKING_DIR
"
"install/linux/
$DEBIAN_PACKAGE_NAME
"
notify-send
"Open-Sankore"
"Package built"
#clean up mess
fakeroot
rm
-rf
$BASE_WORKING_DIR
if
[
$CREATE_DIENA_DISTRIBUTION_ZIP
==
true
]
;
then
ZIP_NAME
=
"Open-Sankoré_
`
lsb_release
-is
`
_
`
lsb_release
-rs
`
_
${
VERSION
}
_
${
ARCHITECTURE
}
.zip"
cd install
/linux
`
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"
fi
\ No newline at end of file
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