diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-02 07:23:08 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-02 07:23:08 +0100 |
commit | c00856b74aefd339820c02f764b3da35c67f0b9c (patch) | |
tree | a7f749f631878b2d8d75db82afef2d4d1708131f | |
parent | b7f128745f7a5a506ec2786bdb2645f4d0ec7c86 (diff) |
use zips, since github form insistsopentrack-2.3-20141102
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | make-tar.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f2ed953..5325f673 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,7 +154,7 @@ string(REPLACE "refs/heads/" "" filename-branch_1 "${filename-branch_0}") string(REPLACE "/" "-" filename-branch "${filename-branch_1}") set(filename_0 opentrack-${filename-ostype}-${filename-branch}-${filename-date}-${filename-hash}) string(TOLOWER "${filename_0}" filename_1) -set(filename "${CMAKE_BINARY_DIR}/${filename_1}.tar.xz") +set(filename "${CMAKE_BINARY_DIR}/${filename_1}.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}) diff --git a/make-tar.sh b/make-tar.sh index 26b65dcb..e774c8ef 100644 --- a/make-tar.sh +++ b/make-tar.sh @@ -6,7 +6,7 @@ filename="$2" if : && make install && cd $(dirname -- "${prefix}") && - tar Jcf "${filename}" $(basename "${prefix}") + zip -9r "${filename}" $(basename "${prefix}") then ls -lh -- "${filename}" else |