diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-17 11:13:02 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-17 11:13:02 +0200 |
commit | 6b220145f9571681d10742f00ffb42ea226e3851 (patch) | |
tree | be5690f6aa52bba0c696fc9dbb54ad04ea7d3bb1 | |
parent | 5f20a56e3d948d44a856a529d490e330a1adb57f (diff) |
cmake: regen tarball even if exists
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | make-tar.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cb9dc8b9..41b7f57d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,7 +207,7 @@ set(filename_0 "${OPENTRACK_COMMIT}") set(filename "${CMAKE_BINARY_DIR}/${filename_0}.zip") add_custom_command(OUTPUT ${filename} COMMAND env sh "${CMAKE_SOURCE_DIR}/make-tar.sh" "${CMAKE_INSTALL_PREFIX}" "${filename}") -add_custom_target(tarball DEPENDS ${filename}) +add_custom_target(tarball) opentrack_module(opentrack-api opentrack) diff --git a/make-tar.sh b/make-tar.sh index cd5abc56..8954a4ba 100644 --- a/make-tar.sh +++ b/make-tar.sh @@ -3,6 +3,8 @@ prefix="$1" filename="$2" +rm -fv "$filename" + if : && cd $(dirname -- "${prefix}") && zip -9r "${filename}" $(basename "${prefix}") |