Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
0c985a33
Commit
0c985a33
authored
11 years ago
by
Ganeva, Marina
Browse files
Options
Downloads
Patches
Plain Diff
Added changelog for debian package
parent
91514fca
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/modules/BornAgainCPack.cmake
+30
-9
30 additions, 9 deletions
cmake/modules/BornAgainCPack.cmake
with
30 additions
and
9 deletions
cmake/modules/BornAgainCPack.cmake
+
30
−
9
View file @
0c985a33
...
...
@@ -97,6 +97,11 @@ IF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
)
ENDIF
(
NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE
)
if
(
${
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
}
MATCHES
"i686"
)
SET
(
CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386
)
endif
()
set
(
CPACK_DEBIAN_PACKAGE_NAME
"
${
CPACK_PACKAGE_NAME
}
"
)
set
(
CPACK_DEBIAN_PACKAGE_PRIORITY
"optional"
)
set
(
CPACK_DEBIAN_PACKAGE_SECTION
"devel"
)
...
...
@@ -110,27 +115,43 @@ set(CPACK_PACKAGE_FILE_NAME "${CPACK_DEBIAN_PACKAGE_NAME}-${CPACK_PACKAGE_VERSIO
file
(
WRITE
"
${
CMAKE_BINARY_DIR
}
/copyright"
"Copyright (C) 2013 Sceintific Computing at MLZ
This software may be licensed under the terms of the
GNU Lesser General Public License Version 3 (the ``LGPL''),
or (at your option) any later version.
This software is licensed under the terms of the
GNU General Public License Version 3.
Software distributed under the License is distributed
on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
express or implied. See the
L
GPL for the specific language
express or implied. See the GPL for the specific language
governing rights and limitations.
You should have received a copy of the
L
GPL along with this
program. If not, go to http://www.gnu.org/licenses/
l
gpl.html
You should have received a copy of the GPL along with this
program. If not, go to http://www.gnu.org/licenses/gpl.html
or write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
On Debian systems, the complete text of the GNU
Lesser
General Public
License can be found in `/usr/share/common-licenses/
L
GPL-3'."
)
On Debian systems, the complete text of the GNU General Public
License can be found in `/usr/share/common-licenses/GPL-3'."
)
install
(
FILES
"
${
CMAKE_BINARY_DIR
}
/copyright"
DESTINATION
"share/doc/
${
CPACK_DEBIAN_PACKAGE_NAME
}
"
)
# write changelog file [TODO]
# write changelog file
FIND_PROGRAM
(
GIT_EXECUTABLE git
)
FIND_PROGRAM
(
GIT2CL_EXECUTABLE git2cl
)
IF
(
GIT_EXECUTABLE AND GIT2CL_EXECUTABLE
)
set
(
GIT_DIR
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/.git"
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
--git-dir=
${
GIT_DIR
}
log
COMMAND
${
GIT2CL_EXECUTABLE
}
COMMAND gzip -9
OUTPUT_FILE
"
${
CMAKE_BINARY_DIR
}
/changelog.gz"
)
install
(
FILES
"
${
CMAKE_BINARY_DIR
}
/changelog.gz"
DESTINATION
"share/doc/
${
CPACK_DEBIAN_PACKAGE_NAME
}
"
)
else
()
MESSAGE
(
STATUS
"W: git or git2cl not found. Can't create the debian changelog file."
)
ENDIF
(
GIT_EXECUTABLE AND GIT2CL_EXECUTABLE
)
# check if such commands are exist
include
(
CPack
)
...
...
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