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
94c5b2b5
Commit
94c5b2b5
authored
Dec 19, 2013
by
-f
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics
parent
3f212968
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
23 deletions
+10
-23
buildDebianPackage.sh
buildDebianPackage.sh
+10
-23
No files found.
buildDebianPackage.sh
View file @
94c5b2b5
...
...
@@ -32,7 +32,6 @@ initializeVariables()
{
APPLICATION_NAME
=
"OpenBoard"
MAKE_TAG
=
true
CREATE_DIENA_DISTRIBUTION_ZIP
=
false
STANDARD_QT_USED
=
false
PRODUCT_PATH
=
"build/linux/release/product"
...
...
@@ -157,10 +156,7 @@ buildWithStandardQt
for
var
in
"
$@
"
do
if
[
$var
==
"notag"
]
;
then
MAKE_TAG
=
false
;
fi
if
[
$var
==
"diena"
]
;
then
CREATE_DIENA_DISTRIBUTION_ZIP
=
true
;
MAKE_TAG
=
false
;
fi
done
...
...
@@ -371,16 +367,16 @@ echo -n "Depends: " >> "$CONTROL_FILE"
unset
tab
declare
-a
tab
let
count
=
0
for
l
in
`
objdump
-p
$PACKAGE_DIRECTORY
/
${
APPLICATION_NAME
}
|
grep
NEEDED |
awk
'{ print $2 }'
`
;
do
for
l
in
`
objdump
-p
$PACKAGE_DIRECTORY
/
${
APPLICATION_NAME
}
|
grep
NEEDED |
awk
'{ print $2 }'
`
;
do
for
lib
in
`
dpkg
-S
$l
|
awk
-F
":"
'{ print $1 }'
`
;
do
#echo $lib
presence
=
`
echo
${
tab
[*]
}
|
grep
-c
"
$lib
"
`
;
if
[
"
$presence
"
==
"0"
]
;
then
presence
=
`
echo
${
tab
[*]
}
|
grep
-c
"
$lib
"
`
;
if
[
"
$presence
"
==
"0"
]
;
then
tab[
$count
]=
$lib
;
((
count++
))
;
fi
;
done
;
done
;
fi
;
done
;
done
;
for
((
i
=
0
;
i<
${#
tab
[@]
}
;
i++
))
;
do
if
[
$i
-ne
"0"
]
;
then
...
...
@@ -391,14 +387,14 @@ done
echo
""
>>
"
$CONTROL_FILE
"
echo
"Description: This a interactive white board that uses a free standard format."
>>
"
$CONTROL_FILE
"
find
$BASE_WORKING_DIR
/usr/
-exec
md5sum
{}
>
$BASE_WORKING_DIR
/DEBIAN/md5sums 2>/dev/null
\;
find
$BASE_WORKING_DIR
/usr/
-exec
md5sum
{}
>
$BASE_WORKING_DIR
/DEBIAN/md5sums 2>/dev/null
\;
APPLICATION_SHORTCUT
=
"
$BASE_WORKING_DIR
/usr/share/applications/
${
APPLICATION_NAME
}
.desktop"
echo
"[Desktop Entry]"
>
$APPLICATION_SHORTCUT
echo
"Version=
$VERSION
"
>>
$APPLICATION_SHORTCUT
echo
"Encoding=UTF-8"
>>
$APPLICATION_SHORTCUT
echo
"Name=
${
APPLICATION_NAME
}
(
$VERSION
)"
>>
$APPLICATION_SHORTCUT
echo
"GenericName=
${
APPLICATION_NAME
}
"
>>
$APPLICATION_SHORTCUT
echo
"Comment=Logiciel de création de présentations pour tableau numérique interactif (TNI)"
>>
$APPLICATION_SHORTCUT
echo
"Comment=Logiciel de création de présentations pour tableau numérique interactif (TNI)"
>>
$APPLICATION_SHORTCUT
echo
"Exec=/usr/local/
$APPLICATION_DIRECTORY_NAME
/run.sh"
>>
$APPLICATION_SHORTCUT
echo
"Icon=/usr/local/
$APPLICATION_DIRECTORY_NAME
/
${
APPLICATION_NAME
}
.png"
>>
$APPLICATION_SHORTCUT
echo
"StartupNotify=true"
>>
$APPLICATION_SHORTCUT
...
...
@@ -413,7 +409,7 @@ chmod 755 "$BASE_WORKING_DIR/DEBIAN/postint"
mkdir
-p
"install/linux"
DEBIAN_PACKAGE_NAME
=
"
${
APPLICATION_NAME
}
_
${
VERSION
}
_
$ARCHITECTURE
.deb"
chown
-R
root:root
$BASE_WORKING_DIR
chown
-R
root:root
$BASE_WORKING_DIR
dpkg
-b
"
$BASE_WORKING_DIR
"
"install/linux/
$DEBIAN_PACKAGE_NAME
"
#clean up mess
...
...
@@ -422,13 +418,4 @@ rm -rf $BASE_WORKING_DIR
notifyProgress
"
${
APPLICATION_NAME
}
"
"Package built"
if
[
$CREATE_DIENA_DISTRIBUTION_ZIP
==
true
]
;
then
ZIP_NAME
=
"
${
APPLICATION_NAME
}
_
`
lsb_release
-is
`
_
`
lsb_release
-rs
`
_
${
VERSION
}
_
${
ARCHITECTURE
}
.zip"
cd install
/linux
$ZIP_PATH
-1
--junk-paths
${
ZIP_NAME
}
${
DEBIAN_PACKAGE_NAME
}
../../ReleaseNotes.pdf ../../JournalDesModifications.pdf
cd
-
notifyProgress
"
${
APPLICATION_NAME
}
"
"Build Diena zip file for distribution"
fi
exit
0
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