From 595c46516de195b2660ec4111cbd3564b9157127 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 19 Mar 2013 17:42:18 +0100 Subject: Update package script Allows to set additional information in each plugin's CMakeLists.txt. --- plugins/package-plugin.sh.in | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/package-plugin.sh.in b/plugins/package-plugin.sh.in index 25eaf51..65c401c 100644 --- a/plugins/package-plugin.sh.in +++ b/plugins/package-plugin.sh.in @@ -1,4 +1,25 @@ -FILE_NAME_FLAG="-D CPACK_PACKAGE_FILE_NAME=uca-plugin-${UCA_CAMERA_NAME}-${UCA_VERSION_STRING}-${PLUGIN_VERSION}-${PLUGIN_REVISION}" -PACKAGE_NAME_FLAG="-D CPACK_PACKAGE_NAME=uca-plugin-${UCA_CAMERA_NAME}" +PACKAGE_CHANGELOG="-D CPACK_RPM_CHANGELOG_FILE=${PLUGIN_CHANGELOG}" +PACKAGE_FILE_NAME="-D CPACK_PACKAGE_FILE_NAME=uca-plugin-${UCA_CAMERA_NAME}-${UCA_VERSION_STRING}-${PLUGIN_VERSION}-${PLUGIN_REVISION}" +PACKAGE_NAME="-D CPACK_PACKAGE_NAME=uca-plugin-${UCA_CAMERA_NAME}" +PACKAGE_DEPENDENCIES="-D CPACK_RPM_PACKAGE_REQUIRES=\"${PLUGIN_REQUIRES}\"" +PACKAGE_DESCRIPTION="-D CPACK_RPM_PACKAGE_DESCRIPTION=\"${PLUGIN_DESCRIPTION}\"" +PACKAGE_RELEASE="-D CPACK_RPM_PACKAGE_RELEASE=${PLUGIN_REVISION}" +PACKAGE_SUMMARY="-D CPACK_RPM_PACKAGE_SUMMARY=\"${PLUGIN_SUMMARY}\"" +PACKAGE_VENDOR="-D CPACK_RPM_PACKAGE_VENDOR=\"${PLUGIN_VENDOR}\"" +PACKAGE_VERSION="-D CPACK_PACKAGE_VERSION=${PLUGIN_VERSION}" -cpack -D CPACK_INSTALL_CMAKE_PROJECTS="${CMAKE_CURRENT_BINARY_DIR}/;Project;${UCA_CAMERA_NAME};/" $FILE_NAME_FLAG $PACKAGE_NAME_FLAG +FLAGS=" \ + $PACKAGE_CHANGELOG \ + $PACKAGE_DEPENDENCIES \ + $PACKAGE_DESCRIPTION \ + $PACKAGE_FILE_NAME \ + $PACKAGE_NAME \ + $PACKAGE_RELEASE \ + $PACKAGE_SUMMARY \ + $PACKAGE_VENDOR \ + $PACKAGE_VERSION \ + " + +cmd="cpack -D CPACK_INSTALL_CMAKE_PROJECTS=\"${CMAKE_CURRENT_BINARY_DIR}/;Project;${UCA_CAMERA_NAME};/\" $FLAGS" + +eval $cmd -- cgit v1.2.3