summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMihael Koep <koep@schneide.com>2013-03-21 11:48:12 +0100
committerMihael Koep <koep@schneide.com>2013-03-21 11:48:12 +0100
commitb9bfef1a6032e0ce0cc8f9cc95a28121a17331ce (patch)
tree814aad6dcddccd8e539bd11af5e471a336988c23
parentab6fdf70c85773d7ebf4b1da2cf5aa4b1b649a32 (diff)
downloaduca-b9bfef1a6032e0ce0cc8f9cc95a28121a17331ce.tar.gz
uca-b9bfef1a6032e0ce0cc8f9cc95a28121a17331ce.tar.bz2
uca-b9bfef1a6032e0ce0cc8f9cc95a28121a17331ce.tar.xz
uca-b9bfef1a6032e0ce0cc8f9cc95a28121a17331ce.zip
Update package script
Allows to set additional information in each plugin's CMakeLists.txt. Conflicts: plugins/package-plugin.sh.in
-rw-r--r--plugins/package-plugin.sh.in27
1 files changed, 24 insertions, 3 deletions
diff --git a/plugins/package-plugin.sh.in b/plugins/package-plugin.sh.in
index cdbd4dd..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 -D CPACK_RPM_PACKAGE_SUMMARY="${PLUGIN_SUMMARY}" -D CPACK_PACKAGE_VERSION=${PLUGIN_VERSION} -D CPACK_RPM_PACKAGE_RELEASE=${PLUGIN_REVISION} -D CPACK_RPM_CHANGELOG_FILE=${PLUGIN_CHANGELOG} -D CPACK_RPM_PACKAGE_REQUIRES="${PLUGIN_REQUIRES}" -D CPACK_RPM_PACKAGE_DESCRIPTION="${PLUGIN_DESCRIPTION}" -D CPACK_RPM_PACKAGE_VENDOR="${PLUGIN_VENDOR}"
+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