Skip to content
Snippets Groups Projects
Commit d1baac0a authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Merge branch 'packsource' of apps.jcns.fz-juelich.de:BornAgain into packsource

parents 1df35c03 0c985a33
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,11 @@ IF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE) ...@@ -100,6 +100,11 @@ IF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
) )
ENDIF(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_NAME "${CPACK_PACKAGE_NAME}")
set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional") set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
set(CPACK_DEBIAN_PACKAGE_SECTION "devel") set(CPACK_DEBIAN_PACKAGE_SECTION "devel")
...@@ -113,27 +118,43 @@ set(CPACK_PACKAGE_FILE_NAME "${CPACK_DEBIAN_PACKAGE_NAME}-${CPACK_PACKAGE_VERSIO ...@@ -113,27 +118,43 @@ set(CPACK_PACKAGE_FILE_NAME "${CPACK_DEBIAN_PACKAGE_NAME}-${CPACK_PACKAGE_VERSIO
file(WRITE "${CMAKE_BINARY_DIR}/copyright" file(WRITE "${CMAKE_BINARY_DIR}/copyright"
"Copyright (C) 2013 Sceintific Computing at MLZ "Copyright (C) 2013 Sceintific Computing at MLZ
This software may be licensed under the terms of the This software is licensed under the terms of the
GNU Lesser General Public License Version 3 (the ``LGPL''), GNU General Public License Version 3.
or (at your option) any later version.
Software distributed under the License is distributed Software distributed under the License is distributed
on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
express or implied. See the LGPL for the specific language express or implied. See the GPL for the specific language
governing rights and limitations. governing rights and limitations.
You should have received a copy of the LGPL along with this You should have received a copy of the GPL along with this
program. If not, go to http://www.gnu.org/licenses/lgpl.html program. If not, go to http://www.gnu.org/licenses/gpl.html
or write to the Free Software Foundation, Inc., or write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
On Debian systems, the complete text of the GNU Lesser General Public On Debian systems, the complete text of the GNU General Public
License can be found in `/usr/share/common-licenses/LGPL-3'.") License can be found in `/usr/share/common-licenses/GPL-3'.")
install(FILES "${CMAKE_BINARY_DIR}/copyright" install(FILES "${CMAKE_BINARY_DIR}/copyright"
DESTINATION "share/doc/${CPACK_DEBIAN_PACKAGE_NAME}") 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) include(CPack)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment