From c7d308a9ba6c0ef1639b7b78848a3dd2117fde0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 30 Jul 2020 01:12:11 +0200 Subject: Use tde_create_tarball, which is ready for reproducible builds, instead of calling 'tar' and requiring GNU extensions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- .../cpp/app_templates/automakeempty/CMakeLists.txt | 9 ++++++-- languages/cpp/app_templates/chello/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/chello_gba/CMakeLists.txt | 9 ++++++-- languages/cpp/app_templates/clanlib/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/cmakelibc/CMakeLists.txt | 24 +++++++++++++++---- .../cpp/app_templates/cmakelibcpp/CMakeLists.txt | 24 +++++++++++++++---- .../cpp/app_templates/cmakeqt3app/CMakeLists.txt | 27 +++++++++++++++++----- .../cpp/app_templates/cmakesimple/CMakeLists.txt | 23 ++++++++++++++---- .../cpp/app_templates/cmakesimplec/CMakeLists.txt | 23 ++++++++++++++---- .../app_templates/cppcurseshello/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/cpphello/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/cppsdlhello/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/gtk2mmapp/CMakeLists.txt | 9 ++++++-- languages/cpp/app_templates/kapp/CMakeLists.txt | 9 ++++++-- languages/cpp/app_templates/kmod/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/kpartapp/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/kpartplugin/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/kscons_kxt/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/kscons_tdemdi/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/makefileempty/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/opieapplet/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/opieinput/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/opiemenu/CMakeLists.txt | 9 ++++++-- languages/cpp/app_templates/opienet/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/opietoday/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/qmakeapp/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/qmakeempty/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/qmakesimple/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/qt4hello/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/qt4makeapp/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/win32gui/CMakeLists.txt | 9 ++++++-- .../cpp/app_templates/win32hello/CMakeLists.txt | 9 ++++++-- 32 files changed, 286 insertions(+), 78 deletions(-) (limited to 'languages/cpp') diff --git a/languages/cpp/app_templates/automakeempty/CMakeLists.txt b/languages/cpp/app_templates/automakeempty/CMakeLists.txt index fabaee04..d20c797e 100644 --- a/languages/cpp/app_templates/automakeempty/CMakeLists.txt +++ b/languages/cpp/app_templates/automakeempty/CMakeLists.txt @@ -9,11 +9,16 @@ # ################################################# -add_custom_target( automakeempty.tar.gz ALL - COMMAND ${TAR} zcf automakeempty.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content automakeempty-Makefile.am automakeempty-Makefile.cvs configure.in automakeempty.png app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET automakeempty.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/chello/CMakeLists.txt b/languages/cpp/app_templates/chello/CMakeLists.txt index 3575098b..20e0fee0 100644 --- a/languages/cpp/app_templates/chello/CMakeLists.txt +++ b/languages/cpp/app_templates/chello/CMakeLists.txt @@ -9,11 +9,16 @@ # ################################################# -add_custom_target( chello.tar.gz ALL - COMMAND ${TAR} zcf chello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.c src-Makefile.am c-Makefile.am c-Makefile.cvs configure.in chello.png app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET chello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/chello_gba/CMakeLists.txt b/languages/cpp/app_templates/chello_gba/CMakeLists.txt index 006c8ede..8f321aa6 100644 --- a/languages/cpp/app_templates/chello_gba/CMakeLists.txt +++ b/languages/cpp/app_templates/chello_gba/CMakeLists.txt @@ -9,12 +9,17 @@ # ################################################# -add_custom_target( chellogba.tar.gz ALL - COMMAND ${TAR} zcf chellogba.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.c font.raw.c master.pal.c src-Makefile.am c-Makefile.am c-Makefile.cvs configure.in chellogba.png app.kdevelop main.h gba.h font.bmp README.devel ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET chellogba.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/clanlib/CMakeLists.txt b/languages/cpp/app_templates/clanlib/CMakeLists.txt index 8752cbaa..579b7bf6 100644 --- a/languages/cpp/app_templates/clanlib/CMakeLists.txt +++ b/languages/cpp/app_templates/clanlib/CMakeLists.txt @@ -9,11 +9,16 @@ # ################################################# -add_custom_target( clanlib.tar.gz ALL - COMMAND ${TAR} zcf clanlib.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content src-Makefile.am app-Makefile.am main.cpp app.kdevelop app-configure.in app-autogen.sh ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET clanlib.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/cmakelibc/CMakeLists.txt b/languages/cpp/app_templates/cmakelibc/CMakeLists.txt index 78af25de..9877e715 100644 --- a/languages/cpp/app_templates/cmakelibc/CMakeLists.txt +++ b/languages/cpp/app_templates/cmakelibc/CMakeLists.txt @@ -9,11 +9,25 @@ # ################################################# -add_custom_target( cmakelibc.tar.gz ALL - COMMAND ${TAR} --transform \"flags=r\;s/cmakelibc-CMakeLists.txt/CMakeLists.txt/\" - -zcf cmakelibc.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - test.c lib.h lib.c cmakelibc.png cmakelibc-CMakeLists.txt - CMakeLists.txt.src +set( _tarball_files + test.c lib.h lib.c cmakelibc.png CMakeLists.txt.src +) +set( _tarball_content ${_tarball_files} CMakeLists.txt ) +list( SORT _tarball_content ) + +file( + COPY ${_tarball_files} cmakelibc-CMakeLists.txt + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} +) +file( + RENAME ${CMAKE_CURRENT_BINARY_DIR}/cmakelibc-CMakeLists.txt + ${CMAKE_CURRENT_BINARY_DIR}/CMakeLists.txt +) + +tde_create_tarball( + TARGET cmakelibc.tar.gz + SOURCEDIR ${CMAKE_CURRENT_BINARY_DIR} + FILES ${_tarball_content} ) diff --git a/languages/cpp/app_templates/cmakelibcpp/CMakeLists.txt b/languages/cpp/app_templates/cmakelibcpp/CMakeLists.txt index d2dec700..a434a860 100644 --- a/languages/cpp/app_templates/cmakelibcpp/CMakeLists.txt +++ b/languages/cpp/app_templates/cmakelibcpp/CMakeLists.txt @@ -9,11 +9,25 @@ # ################################################# -add_custom_target( cmakelibcpp.tar.gz ALL - COMMAND ${TAR} --transform \"flags=r\;s/cmakelibcpp-CMakeLists.txt/CMakeLists.txt/\" - -zcf cmakelibcpp.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - test.cpp lib.h lib.cpp cmakelibcpp.png - cmakelibcpp-CMakeLists.txt CMakeLists.txt.src +set( _tarball_files + test.cpp lib.h lib.cpp cmakelibcpp.png CMakeLists.txt.src +) +set( _tarball_content ${_tarball_files} CMakeLists.txt ) +list( SORT _tarball_content ) + +file( + COPY ${_tarball_files} cmakelibcpp-CMakeLists.txt + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} +) +file( + RENAME ${CMAKE_CURRENT_BINARY_DIR}/cmakelibcpp-CMakeLists.txt + ${CMAKE_CURRENT_BINARY_DIR}/CMakeLists.txt +) + +tde_create_tarball( + TARGET cmakelibcpp.tar.gz + SOURCEDIR ${CMAKE_CURRENT_BINARY_DIR} + FILES ${_tarball_content} ) diff --git a/languages/cpp/app_templates/cmakeqt3app/CMakeLists.txt b/languages/cpp/app_templates/cmakeqt3app/CMakeLists.txt index 6f00e88f..0a811775 100644 --- a/languages/cpp/app_templates/cmakeqt3app/CMakeLists.txt +++ b/languages/cpp/app_templates/cmakeqt3app/CMakeLists.txt @@ -9,12 +9,27 @@ # ################################################# -add_custom_target( cmakeqt3app.tar.gz ALL - COMMAND ${TAR} --transform \"flags=r\;s/cmakeqt3app-CMakeLists.txt/CMakeLists.txt/\" - -zcf cmakeqt3app.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - main.cpp cmakeqt3app.cpp cmakeqt3app.h cmakeqt3app.png - filesave.xpm fileopen.xpm fileprint.xpm - cmakeqt3app-CMakeLists.txt CMakeLists.txt.src +set( _tarball_files + main.cpp cmakeqt3app.cpp cmakeqt3app.h cmakeqt3app.png + filesave.xpm fileopen.xpm fileprint.xpm + CMakeLists.txt.src +) +set( _tarball_content ${_tarball_files} CMakeLists.txt ) +list( SORT _tarball_content ) + +file( + COPY ${_tarball_files} cmakeqt3app-CMakeLists.txt + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} +) +file( + RENAME ${CMAKE_CURRENT_BINARY_DIR}/cmakeqt3app-CMakeLists.txt + ${CMAKE_CURRENT_BINARY_DIR}/CMakeLists.txt +) + +tde_create_tarball( + TARGET cmakeqt3app.tar.gz + SOURCEDIR ${CMAKE_CURRENT_BINARY_DIR} + FILES ${_tarball_content} ) diff --git a/languages/cpp/app_templates/cmakesimple/CMakeLists.txt b/languages/cpp/app_templates/cmakesimple/CMakeLists.txt index ca9ea9aa..0ce7b8e4 100644 --- a/languages/cpp/app_templates/cmakesimple/CMakeLists.txt +++ b/languages/cpp/app_templates/cmakesimple/CMakeLists.txt @@ -9,10 +9,25 @@ # ################################################# -add_custom_target( cmakesimple.tar.gz ALL - COMMAND ${TAR} --transform \"flags=r\;s/cmakesimple-CMakeLists.txt/CMakeLists.txt/\" - -zcf cmakesimple.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - main.cpp cmakesimple.png cmakesimple-CMakeLists.txt README +set( _tarball_files + main.cpp cmakesimple.png README +) +set( _tarball_content ${_tarball_files} CMakeLists.txt ) +list( SORT _tarball_content ) + +file( + COPY ${_tarball_files} cmakesimple-CMakeLists.txt + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} +) +file( + RENAME ${CMAKE_CURRENT_BINARY_DIR}/cmakesimple-CMakeLists.txt + ${CMAKE_CURRENT_BINARY_DIR}/CMakeLists.txt +) + +tde_create_tarball( + TARGET cmakesimple.tar.gz + SOURCEDIR ${CMAKE_CURRENT_BINARY_DIR} + FILES ${_tarball_content} ) diff --git a/languages/cpp/app_templates/cmakesimplec/CMakeLists.txt b/languages/cpp/app_templates/cmakesimplec/CMakeLists.txt index fb6e269b..73e7ba32 100644 --- a/languages/cpp/app_templates/cmakesimplec/CMakeLists.txt +++ b/languages/cpp/app_templates/cmakesimplec/CMakeLists.txt @@ -9,10 +9,25 @@ # ################################################# -add_custom_target( cmakesimplec.tar.gz ALL - COMMAND ${TAR} --transform \"flags=r\;s/cmakesimplec-CMakeLists.txt/CMakeLists.txt/\" - -zcf cmakesimplec.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - main.c cmakesimplec.png cmakesimplec-CMakeLists.txt +set( _tarball_files + main.c cmakesimplec.png +) +set( _tarball_content ${_tarball_files} CMakeLists.txt ) +list( SORT _tarball_content ) + +file( + COPY ${_tarball_files} cmakesimplec-CMakeLists.txt + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} +) +file( + RENAME ${CMAKE_CURRENT_BINARY_DIR}/cmakesimplec-CMakeLists.txt + ${CMAKE_CURRENT_BINARY_DIR}/CMakeLists.txt +) + +tde_create_tarball( + TARGET cmakesimplec.tar.gz + SOURCEDIR ${CMAKE_CURRENT_BINARY_DIR} + FILES ${_tarball_content} ) diff --git a/languages/cpp/app_templates/cppcurseshello/CMakeLists.txt b/languages/cpp/app_templates/cppcurseshello/CMakeLists.txt index b9a28a24..cf6191a9 100644 --- a/languages/cpp/app_templates/cppcurseshello/CMakeLists.txt +++ b/languages/cpp/app_templates/cppcurseshello/CMakeLists.txt @@ -9,11 +9,16 @@ # ################################################# -add_custom_target( cppcurseshello.tar.gz ALL - COMMAND ${TAR} zcf cppcurseshello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.cpp src-Makefile.am cpp-Makefile.am cpp-Makefile.cvs app-configure.in app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET cppcurseshello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/cpphello/CMakeLists.txt b/languages/cpp/app_templates/cpphello/CMakeLists.txt index 66bad716..9a00e1f3 100644 --- a/languages/cpp/app_templates/cpphello/CMakeLists.txt +++ b/languages/cpp/app_templates/cpphello/CMakeLists.txt @@ -9,11 +9,16 @@ # ################################################# -add_custom_target( cpphello.tar.gz ALL - COMMAND ${TAR} zcf cpphello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.cpp src-Makefile.am cpp-Makefile.am cpp-Makefile.cvs configure.in cpphello.png app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET cpphello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/cppsdlhello/CMakeLists.txt b/languages/cpp/app_templates/cppsdlhello/CMakeLists.txt index 2c07142d..18cb6344 100644 --- a/languages/cpp/app_templates/cppsdlhello/CMakeLists.txt +++ b/languages/cpp/app_templates/cppsdlhello/CMakeLists.txt @@ -9,11 +9,16 @@ # ################################################# -add_custom_target( cppsdlhello.tar.gz ALL - COMMAND ${TAR} zcf cppsdlhello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.cpp src-Makefile.am cpp-Makefile.am cpp-Makefile.cvs configure.in cppsdlhello.png app.kdevelop acinclude.m4 ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET cppsdlhello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/gtk2mmapp/CMakeLists.txt b/languages/cpp/app_templates/gtk2mmapp/CMakeLists.txt index 26031c85..0a78898d 100644 --- a/languages/cpp/app_templates/gtk2mmapp/CMakeLists.txt +++ b/languages/cpp/app_templates/gtk2mmapp/CMakeLists.txt @@ -9,14 +9,19 @@ # ################################################# -add_custom_target( gtk2mmapp.tar.gz ALL - COMMAND ${TAR} zcf gtk2mmapp.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content acconfig.h autogen.sh gtk2mm.glade main_window.cc main_window_glade.hh Makefile.am app-Makefile.am configure.in gtk2mm.gladep main_window.hh app.kdevelop gtk2mm.cc main_window_glade.cc src-Makefile.am config.h gtk2mmapp.png ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET gtk2mmapp.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/kapp/CMakeLists.txt b/languages/cpp/app_templates/kapp/CMakeLists.txt index ca74b9ec..06cada35 100644 --- a/languages/cpp/app_templates/kapp/CMakeLists.txt +++ b/languages/cpp/app_templates/kapp/CMakeLists.txt @@ -9,12 +9,17 @@ # ################################################# -add_custom_target( kapp.tar.gz ALL - COMMAND ${TAR} zcf kapp.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.cpp app.h pref.cpp pref.h appview.cpp appview.h appiface.h app_client.cpp main.cpp appui.rc src-Makefile.am kapp.png app.kdevelop subdirs README ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET kapp.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/kmod/CMakeLists.txt b/languages/cpp/app_templates/kmod/CMakeLists.txt index 719c96f7..804a10f6 100644 --- a/languages/cpp/app_templates/kmod/CMakeLists.txt +++ b/languages/cpp/app_templates/kmod/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( kmod.tar.gz ALL - COMMAND ${TAR} zcf kmod.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content src-Makefile kmod.kdevelop kmod-driver.c ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET kmod.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/kpartapp/CMakeLists.txt b/languages/cpp/app_templates/kpartapp/CMakeLists.txt index 99991460..193fc66c 100644 --- a/languages/cpp/app_templates/kpartapp/CMakeLists.txt +++ b/languages/cpp/app_templates/kpartapp/CMakeLists.txt @@ -9,12 +9,17 @@ # ################################################# -add_custom_target( kpartapp.tar.gz ALL - COMMAND ${TAR} zcf kpartapp.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content src-Makefile.am app.cpp app.h app_part.cpp app_part.h main.cpp app_part.rc app_shell.rc kpartapp.png app.kdevelop subdirs ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET kpartapp.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/kpartplugin/CMakeLists.txt b/languages/cpp/app_templates/kpartplugin/CMakeLists.txt index e612d98f..aebe30f1 100644 --- a/languages/cpp/app_templates/kpartplugin/CMakeLists.txt +++ b/languages/cpp/app_templates/kpartplugin/CMakeLists.txt @@ -9,12 +9,17 @@ # ################################################# -add_custom_target( kpartplugin.tar.gz ALL - COMMAND ${TAR} zcf kpartplugin.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content src-Makefile.am plugin_app.cpp plugin_app.h plugin_app.rc hi16-action-plugin.png hi22-action-plugin.png kpartplugin.png plugin.kdevelop subdirs ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET kpartplugin.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/kscons_kxt/CMakeLists.txt b/languages/cpp/app_templates/kscons_kxt/CMakeLists.txt index 84e8cd65..3a8889a7 100644 --- a/languages/cpp/app_templates/kscons_kxt/CMakeLists.txt +++ b/languages/cpp/app_templates/kscons_kxt/CMakeLists.txt @@ -9,14 +9,19 @@ # ################################################# -add_custom_target( kscons_kxt.tar.gz ALL - COMMAND ${TAR} zcf kscons_kxt.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.cpp app.h main.cpp appui.rc app.kdevelop appview.h appview.cpp appview_base.ui prefs-base.ui prefs.cpp prefs.h app.kcfg settings.kcfgc messages.sh SConstruct SConscript-doc SConscript-src tips VERSION QUICKSTART INSTALL README ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET kscons_kxt.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/kscons_tdemdi/CMakeLists.txt b/languages/cpp/app_templates/kscons_tdemdi/CMakeLists.txt index 2d3341d5..30af3302 100644 --- a/languages/cpp/app_templates/kscons_tdemdi/CMakeLists.txt +++ b/languages/cpp/app_templates/kscons_tdemdi/CMakeLists.txt @@ -9,8 +9,7 @@ # ################################################# -add_custom_target( kscons_tdemdi.tar.gz ALL - COMMAND ${TAR} zcf kscons_tdemdi.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.kcfg app.kdevelop apptdemdi.cpp apptdemdi.h apptdemdiView.cpp apptdemdiView.h INSTALL tdemdikonsole.cpp tdemdikonsole.h main.cpp messages.sh prefs.ui QUICKSTART README @@ -18,6 +17,12 @@ add_custom_target( kscons_tdemdi.tar.gz ALL tips VERSION app_part.cpp app_part.h app_part.rc app_shell.rc ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET kscons_tdemdi.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/makefileempty/CMakeLists.txt b/languages/cpp/app_templates/makefileempty/CMakeLists.txt index 896c94f5..38d2c19a 100644 --- a/languages/cpp/app_templates/makefileempty/CMakeLists.txt +++ b/languages/cpp/app_templates/makefileempty/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( makefileempty.tar.gz ALL - COMMAND ${TAR} zcf makefileempty.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content makefileempty-Makefile makefileempty.png app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET makefileempty.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/opieapplet/CMakeLists.txt b/languages/cpp/app_templates/opieapplet/CMakeLists.txt index ad5e0fa5..d1715be3 100644 --- a/languages/cpp/app_templates/opieapplet/CMakeLists.txt +++ b/languages/cpp/app_templates/opieapplet/CMakeLists.txt @@ -9,11 +9,16 @@ # ################################################# -add_custom_target( opieapplet.tar.gz ALL - COMMAND ${TAR} zcf opieapplet.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content Makefile.am Example.png app.kdevelop app.pro simpleimpl.cpp simpleimpl.h ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET opieapplet.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/opieinput/CMakeLists.txt b/languages/cpp/app_templates/opieinput/CMakeLists.txt index fd00f30c..050e4a43 100644 --- a/languages/cpp/app_templates/opieinput/CMakeLists.txt +++ b/languages/cpp/app_templates/opieinput/CMakeLists.txt @@ -9,11 +9,16 @@ # ################################################# -add_custom_target( opieinput.tar.gz ALL - COMMAND ${TAR} zcf opieinput.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content Makefile.am Example.png app.kdevelop app.pro simpleimpl.cpp simpleimpl.h ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET opieinput.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/opiemenu/CMakeLists.txt b/languages/cpp/app_templates/opiemenu/CMakeLists.txt index 9a8ebb23..f28685ab 100644 --- a/languages/cpp/app_templates/opiemenu/CMakeLists.txt +++ b/languages/cpp/app_templates/opiemenu/CMakeLists.txt @@ -9,11 +9,16 @@ # ################################################# -add_custom_target( opiemenu.tar.gz ALL - COMMAND ${TAR} zcf opiemenu.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content Makefile.am Example.png app.kdevelop app.pro simpleimpl.cpp simpleimpl.h ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET opiemenu.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/opienet/CMakeLists.txt b/languages/cpp/app_templates/opienet/CMakeLists.txt index b82f0e69..06ab903b 100644 --- a/languages/cpp/app_templates/opienet/CMakeLists.txt +++ b/languages/cpp/app_templates/opienet/CMakeLists.txt @@ -9,12 +9,17 @@ # ################################################# -add_custom_target( opienet.tar.gz ALL - COMMAND ${TAR} zcf opienet.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content Makefile.am Example.png app.kdevelop app.pro simpleiface.cpp simpleiface.h simplemodule.h simplemodule.cpp ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET opienet.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/opietoday/CMakeLists.txt b/languages/cpp/app_templates/opietoday/CMakeLists.txt index 5785f162..81fb97fe 100644 --- a/languages/cpp/app_templates/opietoday/CMakeLists.txt +++ b/languages/cpp/app_templates/opietoday/CMakeLists.txt @@ -9,13 +9,18 @@ # ################################################# -add_custom_target( opietoday.tar.gz ALL - COMMAND ${TAR} zcf opietoday.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content Makefile.am Example.png app.kdevelop app.pro exampleplugin.cpp examplepluginimpl.cpp examplepluginwidget.cpp exampleplugin.h examplepluginimpl.h examplepluginwidget.h ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET opietoday.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/qmakeapp/CMakeLists.txt b/languages/cpp/app_templates/qmakeapp/CMakeLists.txt index 06f9efe4..91383d36 100644 --- a/languages/cpp/app_templates/qmakeapp/CMakeLists.txt +++ b/languages/cpp/app_templates/qmakeapp/CMakeLists.txt @@ -9,12 +9,17 @@ # ################################################# -add_custom_target( qmakeapp.tar.gz ALL - COMMAND ${TAR} zcf qmakeapp.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.cpp qmakeapp.cpp qmakeapp.h qmakeapp.png qmakeapp.kdevelop qmakeapp.pro src.pro filesave.xpm fileopen.xpm fileprint.xpm ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET qmakeapp.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/qmakeempty/CMakeLists.txt b/languages/cpp/app_templates/qmakeempty/CMakeLists.txt index c2eae5be..e60232f9 100644 --- a/languages/cpp/app_templates/qmakeempty/CMakeLists.txt +++ b/languages/cpp/app_templates/qmakeempty/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( qmakeempty.tar.gz ALL - COMMAND ${TAR} zcf qmakeempty.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content qmakeempty.kdevelop qmakeempty.pro qmakeempty.png ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET qmakeempty.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/qmakesimple/CMakeLists.txt b/languages/cpp/app_templates/qmakesimple/CMakeLists.txt index 1fcf47c4..6fe680a9 100644 --- a/languages/cpp/app_templates/qmakesimple/CMakeLists.txt +++ b/languages/cpp/app_templates/qmakesimple/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( qmakesimple.tar.gz ALL - COMMAND ${TAR} zcf qmakesimple.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.cpp qmakesimple.png app.kdevelop app.pro src.pro ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET qmakesimple.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/qt4hello/CMakeLists.txt b/languages/cpp/app_templates/qt4hello/CMakeLists.txt index 323234dc..47a77b8b 100644 --- a/languages/cpp/app_templates/qt4hello/CMakeLists.txt +++ b/languages/cpp/app_templates/qt4hello/CMakeLists.txt @@ -9,11 +9,16 @@ # ################################################# -add_custom_target( qt4hello.tar.gz ALL - COMMAND ${TAR} zcf qt4hello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.cpp qt4hello.png qt4hello.kdevelop qt4hello.pro src.pro ReadMe ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET qt4hello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/qt4makeapp/CMakeLists.txt b/languages/cpp/app_templates/qt4makeapp/CMakeLists.txt index 94056b6f..ac7a350d 100644 --- a/languages/cpp/app_templates/qt4makeapp/CMakeLists.txt +++ b/languages/cpp/app_templates/qt4makeapp/CMakeLists.txt @@ -9,13 +9,18 @@ # ################################################# -add_custom_target( qt4makeapp.tar.gz ALL - COMMAND ${TAR} zcf qt4makeapp.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.cpp qt4makeapp.cpp qt4makeapp.h qt4makeapp.png qt4makeapp.kdevelop qt4makeapp.pro src.pro application.qrc ReadMe filesave.xpm fileopen.xpm filenew.xpm editcopy.xpm editpaste.xpm editcut.xpm ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET qt4makeapp.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/win32gui/CMakeLists.txt b/languages/cpp/app_templates/win32gui/CMakeLists.txt index 90050d5e..e7aa2b15 100644 --- a/languages/cpp/app_templates/win32gui/CMakeLists.txt +++ b/languages/cpp/app_templates/win32gui/CMakeLists.txt @@ -9,12 +9,17 @@ # ################################################# -add_custom_target( win32gui.tar.gz ALL - COMMAND ${TAR} zcf win32gui.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.cpp src-Makefile.am win32gui-Makefile.am win32gui-Makefile.cvs win32gui-configure.in win32gui.png app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET win32gui.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/cpp/app_templates/win32hello/CMakeLists.txt b/languages/cpp/app_templates/win32hello/CMakeLists.txt index e05ab3a8..7a53667c 100644 --- a/languages/cpp/app_templates/win32hello/CMakeLists.txt +++ b/languages/cpp/app_templates/win32hello/CMakeLists.txt @@ -9,12 +9,17 @@ # ################################################# -add_custom_target( win32hello.tar.gz ALL - COMMAND ${TAR} zcf win32hello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.cpp src-Makefile.am win32-Makefile.am win32-Makefile.cvs win32-configure.in win32hello.png app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET win32hello.tar.gz + FILES ${_tarball_content} +) install( FILES -- cgit v1.2.1