diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-03-19 17:42:18 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-03-19 17:43:36 +0100 |
commit | 595c46516de195b2660ec4111cbd3564b9157127 (patch) | |
tree | 9de0d85b05d17a4715338d72b815efdfd00d6f8e /plugins/package-plugin.sh.in | |
parent | 0b647b4b6ae3c7ec106d7b075413d1a17f053e3d (diff) | |
download | uca-595c46516de195b2660ec4111cbd3564b9157127.tar.gz uca-595c46516de195b2660ec4111cbd3564b9157127.tar.bz2 uca-595c46516de195b2660ec4111cbd3564b9157127.tar.xz uca-595c46516de195b2660ec4111cbd3564b9157127.zip |
Update package script
Allows to set additional information in each plugin's CMakeLists.txt.
Diffstat (limited to 'plugins/package-plugin.sh.in')
-rw-r--r-- | plugins/package-plugin.sh.in | 27 |
1 files changed, 24 insertions, 3 deletions
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 |