Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationCore
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
ChimeraTK Mirror
ApplicationCore
Commits
0d5c990e
Commit
0d5c990e
authored
8 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
fixed not using getDebianBuildVersion correctly
parent
42273f00
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
+8
-8
8 additions, 8 deletions
cmake/make_debian_package.sh.in
with
8 additions
and
8 deletions
cmake/make_debian_package.sh.in
+
8
−
8
View file @
0d5c990e
...
...
@@ -19,15 +19,15 @@
# all lower case, no underscore)
# PACKAGE_FULL_LIBRARY_VERSION The full version, incl. build version and patch version
# PACKAGE_TAG_VERSION The tag for which the package is build
# PACKAGE_MAJORMINOR_VERSION The library version without the patch level (i.e. just "MAJOR.MINOR")
# PACKAGE_MESSAGE The message for the debian package log
# PACKAGE_DEPENDENCY_VERSIONS A space-separated list of dependency names and versions, each connected by a dash, e.g.:
# "DeviceAccess-0.15 ControlSystemAdapter-0.1"
# Also the following standard cmake variables are used (should be always correctly set):
# CMAKE_SOURCE_DIR
# PROJECT_NAME
#Check that the @PACKAGE_BUILDVERSION_ENVIRONMENT_VARIABLE_NAME@ variable is set, otherwise reject creating a package
if
[
-z
"
$@
PACKAGE_BUILDVERSION_ENVIRONMENT_VARIABLE_NAME@"
]
;
then
echo
Environment variable
'@PACKAGE_BUILDVERSION_ENVIRONMENT_VARIABLE_NAME@'
not
set
or empty. You need it to make a debian package!
exit
1
fi
#drop out of the script if anything goes wrong (e.g. non-existen git tag)
#drop out of the script if anything goes wrong (e.g. non-existing git tag)
set
-e
#Create a working directory in order not to merge with the rest in the build directory
...
...
@@ -57,7 +57,7 @@ cd ${BUILD_DIR_NAME}
CODENAME
=
`
lsb_release
-c
|
sed
"{s/Codename:
\s
*//}"
`
#Obtain build version
BUILD_VERSION
=
`
"@CMAKE_SOURCE_DIR@/cmake/getDebianBuildVersion"
`
||
exit
1
BUILD_VERSION
=
`
"@CMAKE_SOURCE_DIR@/cmake/getDebianBuildVersion"
@PROJECT_NAME@ @PACKAGE_MAJORMINOR_VERSION@
${
CODENAME
}
@PACKAGE_DEPENDENCY_VERSIONS@
`
||
exit
1
#Before building the package we will update the changelog. This is easier from a shell script
#because debchange does the right format and the current date, user name and email automatically for us.
...
...
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