light on memory usage, thread safe, and provide full access to server
side methods.")
list(JOIN PROJECT_CONFIG "-" CPACK_PACKAGE_DIRECTORY)
+set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_SOURCE_DIR}/CPack/ProjectConfig.txt")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "${PROJECT_NAME}/${PROJECT_VERSION}")
set(CPACK_PACKAGE_CHECKSUM SHA1)
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
set(CPACK_CHANGELOG_FILE "${CMAKE_SOURCE_DIR}/ChangeLog-1.1.md")
-
execute_process(
COMMAND git describe --tags --match [0-9]*.*
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE PROJECT_TAG
- ERROR_VARIABLE IGNORED
+ ERROR_VARIABLE GIT_ERROR_OUTPUT
)
+if(ERROR_OUTPUT)
+ message(NOTICE "git describe: ${GIT_ERROR_OUTPUT}")
+endif()
string(STRIP "${PROJECT_TAG}" PROJECT_TAG)
if(PROJECT_TAG)
set(CPACK_PACKAGE_FILE_NAME ${PROJECT_NAME}-${PROJECT_TAG})
include(CPack)
add_custom_target(push-artifacts
- COMMAND ${CMAKE_SOURCE_DIR}/scripts/push-artifacts.sh
- ${CPACK_PACKAGE_DIRECTORY}/${PROJECT_NAME}-*
+ COMMAND
+ bash ${CMAKE_SOURCE_DIR}/scripts/push-artifacts.sh "${CPACK_PACKAGE_DIRECTORY}/"
WORKING_DIRECTORY ${CPACK_BINARY_DIR}
)
-#!/bin/bash
+#!/usr/bin/env bash
# push artifacts to https://artifacts.m6w6.name/libmemcached/
if test -n "$PUSH_ARTIFACTS_ID"
fi
RSYNC_CONF=$(dirname $0)/push-artifacts.conf
-rsync -RPae "ssh -F $RSYNC_CONF" "$@" m6w6.name::artifacts/libmemcached/
+rsync -RPae "ssh -F $RSYNC_CONF" --exclude "_CPack_Packages" "$@" m6w6.name::artifacts/libmemcached/