summaryrefslogtreecommitdiffstats
path: root/languages/ruby
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-30 01:12:11 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-30 16:00:40 +0200
commitc7d308a9ba6c0ef1639b7b78848a3dd2117fde0a (patch)
tree3f5ac0754bc7bfdfab203ca0a7144eb808549139 /languages/ruby
parentfe44776673b28ca94338f23d8e7ac71593fa88ba (diff)
downloadtdevelop-c7d308a9ba6c0ef1639b7b78848a3dd2117fde0a.tar.gz
tdevelop-c7d308a9ba6c0ef1639b7b78848a3dd2117fde0a.zip
Use tde_create_tarball, which is ready for reproducible builds,
instead of calling 'tar' and requiring GNU extensions. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'languages/ruby')
-rw-r--r--languages/ruby/app_templates/qtruby/CMakeLists.txt9
-rw-r--r--languages/ruby/app_templates/qtruby4app/CMakeLists.txt9
-rw-r--r--languages/ruby/app_templates/qtrubyapp/CMakeLists.txt9
-rw-r--r--languages/ruby/app_templates/rails/CMakeLists.txt9
-rw-r--r--languages/ruby/app_templates/rubyhello/CMakeLists.txt9
5 files changed, 35 insertions, 10 deletions
diff --git a/languages/ruby/app_templates/qtruby/CMakeLists.txt b/languages/ruby/app_templates/qtruby/CMakeLists.txt
index 4cfb4f08..7aae5ace 100644
--- a/languages/ruby/app_templates/qtruby/CMakeLists.txt
+++ b/languages/ruby/app_templates/qtruby/CMakeLists.txt
@@ -9,10 +9,15 @@
#
#################################################
-add_custom_target( qtruby.tar.gz ALL
- COMMAND ${TAR} zcf qtruby.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+set( _tarball_content
app.rb app.kdevelop app-Makefile app.filelist README
)
+list( SORT _tarball_content )
+
+tde_create_tarball(
+ TARGET qtruby.tar.gz
+ FILES ${_tarball_content}
+)
install( FILES
diff --git a/languages/ruby/app_templates/qtruby4app/CMakeLists.txt b/languages/ruby/app_templates/qtruby4app/CMakeLists.txt
index b14a737a..88476fe2 100644
--- a/languages/ruby/app_templates/qtruby4app/CMakeLists.txt
+++ b/languages/ruby/app_templates/qtruby4app/CMakeLists.txt
@@ -9,13 +9,18 @@
#
#################################################
-add_custom_target( qtruby4app.tar.gz ALL
- COMMAND ${TAR} zcf qtruby4app.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+set( _tarball_content
main.rb qtruby4app.rb qtruby4app.png qtruby4app.kdevelop
application.qrc ReadMe filesave.xpm fileopen.xpm
filenew.xpm editcopy.xpm editpaste.xpm editcut.xpm
app-Makefile app.filelist
)
+list( SORT _tarball_content )
+
+tde_create_tarball(
+ TARGET qtruby4app.tar.gz
+ FILES ${_tarball_content}
+)
install( FILES
diff --git a/languages/ruby/app_templates/qtrubyapp/CMakeLists.txt b/languages/ruby/app_templates/qtrubyapp/CMakeLists.txt
index 18fc07c9..8e159b4c 100644
--- a/languages/ruby/app_templates/qtrubyapp/CMakeLists.txt
+++ b/languages/ruby/app_templates/qtrubyapp/CMakeLists.txt
@@ -9,12 +9,17 @@
#
#################################################
-add_custom_target( qtrubyapp.tar.gz ALL
- COMMAND ${TAR} zcf qtrubyapp.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+set( _tarball_content
main.rb qtrubyapp.rb qtrubyapp.png qtrubyapp.kdevelop
filesave.xpm fileopen.xpm fileprint.xpm app.filelist
app-Makefile README
)
+list( SORT _tarball_content )
+
+tde_create_tarball(
+ TARGET qtrubyapp.tar.gz
+ FILES ${_tarball_content}
+)
install( FILES
diff --git a/languages/ruby/app_templates/rails/CMakeLists.txt b/languages/ruby/app_templates/rails/CMakeLists.txt
index 413402c2..db2b2ef9 100644
--- a/languages/ruby/app_templates/rails/CMakeLists.txt
+++ b/languages/ruby/app_templates/rails/CMakeLists.txt
@@ -9,10 +9,15 @@
#
#################################################
-add_custom_target( rails.tar.gz ALL
- COMMAND ${TAR} zcf rails.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+set( _tarball_content
app.kdevelop
)
+list( SORT _tarball_content )
+
+tde_create_tarball(
+ TARGET rails.tar.gz
+ FILES ${_tarball_content}
+)
install( FILES
diff --git a/languages/ruby/app_templates/rubyhello/CMakeLists.txt b/languages/ruby/app_templates/rubyhello/CMakeLists.txt
index bb42c335..b22f9d58 100644
--- a/languages/ruby/app_templates/rubyhello/CMakeLists.txt
+++ b/languages/ruby/app_templates/rubyhello/CMakeLists.txt
@@ -9,10 +9,15 @@
#
#################################################
-add_custom_target( rubyhello.tar.gz ALL
- COMMAND ${TAR} zcf rubyhello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+set( _tarball_content
app.rb app.kdevelop
)
+list( SORT _tarball_content )
+
+tde_create_tarball(
+ TARGET rubyhello.tar.gz
+ FILES ${_tarball_content}
+)
install( FILES