summaryrefslogtreecommitdiffstats
path: root/plugins/package-plugin.sh.in
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2013-03-15 09:07:51 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2013-03-15 09:07:51 +0100
commit7c5017db105a74af7c622d3529ac9c2c203f99d7 (patch)
treef1ea4521ef95a743abb8564457823de56b463982 /plugins/package-plugin.sh.in
parentd4f1fc90188820a00a74a7e5fd04f6feffa7537e (diff)
downloadlibuca-7c5017db105a74af7c622d3529ac9c2c203f99d7.tar.gz
libuca-7c5017db105a74af7c622d3529ac9c2c203f99d7.tar.bz2
libuca-7c5017db105a74af7c622d3529ac9c2c203f99d7.tar.xz
libuca-7c5017db105a74af7c622d3529ac9c2c203f99d7.zip
Build package flags inside package-plugin.sh.in
This will use the information provided by each plugin.
Diffstat (limited to 'plugins/package-plugin.sh.in')
-rw-r--r--plugins/package-plugin.sh.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/package-plugin.sh.in b/plugins/package-plugin.sh.in
index bfd1eb3..25eaf51 100644
--- a/plugins/package-plugin.sh.in
+++ b/plugins/package-plugin.sh.in
@@ -1 +1,4 @@
-cpack -D CPACK_INSTALL_CMAKE_PROJECTS="${CMAKE_CURRENT_BINARY_DIR}/;Project;${UCA_CAMERA_NAME};/" -D CPACK_PACKAGE_FILE_NAME="uca-plugin-${UCA_CAMERA_NAME}-${UCA_VERSION_MAJOR}.${UCA_VERSION_MINOR}.${UCA_VERSION_PATCH}-${PLUGIN_VERSION}-${PLUGIN_REVISION}" ${PLUGIN_SPECIFIC_FLAGS}
+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}"
+
+cpack -D CPACK_INSTALL_CMAKE_PROJECTS="${CMAKE_CURRENT_BINARY_DIR}/;Project;${UCA_CAMERA_NAME};/" $FILE_NAME_FLAG $PACKAGE_NAME_FLAG