Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TEC ApplicationModule
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MSK-SW
Infrastructure and Support
TEC
TEC ApplicationModule
Commits
5dd2a86a
Commit
5dd2a86a
authored
8 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
also replace #SOVERSION# since it also depends on the build version
parent
d4691e97
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/make_debian_package.sh.in
+3
-2
3 additions, 2 deletions
cmake/make_debian_package.sh.in
with
3 additions
and
2 deletions
cmake/make_debian_package.sh.in
+
3
−
2
View file @
5dd2a86a
...
...
@@ -38,11 +38,12 @@ cd debian_package
# The package versions for doocs / Ubuntu contain the codenamePROJECT_BUILDVERSION of the distribution. Get it from the system.
CODENAME
=
`
lsb_release
-c
|
sed
"{s/Codename:
\s
*//}"
`
# Obtain build version and the derived debian version
# Obtain build version and the derived
so-file and
debian version
s
BUILD_NUMBER
=
`
"@CMAKE_SOURCE_DIR@/cmake/getDebianBuildVersion"
@PROJECT_NAME@ @PACKAGE_MAJORMINOR_VERSION@
${
CODENAME
}
@PACKAGE_DEPENDENCY_VERSIONS@
`
||
exit
1
export
PROJECT_BUILDVERSION
=
"
${
CODENAME
}${
BUILD_NUMBER
}
"
DEBVERSION
=
"@PACKAGE_MAJOR_VERSION@-@PACKAGE_MINOR_VERSION@-
${
PROJECT_BUILDVERSION
}
"
SOVERSION
=
"@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@
${
PROJECT_BUILDVERSION
}
"
# replace #DEBVERSION# inside the template files in the debian_from_template directory, also replace DEBVERSION in the
# file names
...
...
@@ -53,7 +54,7 @@ for file_source in debian_from_template/* ; do
# perform operation, if source and target file names are not identical
if
[
"
$file_source
"
!=
"
$file_target
"
]
;
then
sed
"
$file_source
"
-e
"s|#DEBVERSION#|
${
DEBVERSION
}
|"
>
"
$file_target
"
sed
"
$file_source
"
-e
"s|#DEBVERSION#|
${
DEBVERSION
}
|
g"
-e
"s|#SOVERSION#|
${
SOVERSION
}
|g
"
>
"
$file_target
"
fi
done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment