diff options
55 files changed, 452 insertions, 156 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 83bcbfc6..dae26834 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -75,26 +75,3 @@ if( WITH_VCS_SUBVERSION ) set( SVN_LIBRARIES svn_client-1 svn_subr-1 svn_ra-1 ) endif( ) - - -##### check for gnu tar extensions ############# -if( NOT TAR ) - message( STATUS "Checking if tar supports GNU extensions" ) - foreach( TAR_CMD tar gtar gnutar ) - if( NOT TAR ) - execute_process( - COMMAND ${TAR_CMD} --version - OUTPUT_VARIABLE TAR_VERSION - ERROR_VARIABLE TAR_VERSION - ) - if( "${TAR_VERSION}" MATCHES "(GNU tar)" ) - set( TAR "${TAR_CMD}" CACHE INTERNAL "" FORCE ) - endif( ) - endif( ) - endforeach( TAR_CMD ) - if( TAR ) - message( STATUS "Checking if tar supports GNU extensions - ${TAR}" ) - else( ) - tde_message_fatal( "tar with GNU extensions is required but not found on your system" ) - endif( ) -endif( ) diff --git a/languages/ada/app_templates/adahello/CMakeLists.txt b/languages/ada/app_templates/adahello/CMakeLists.txt index 435fd134..c9962319 100644 --- a/languages/ada/app_templates/adahello/CMakeLists.txt +++ b/languages/ada/app_templates/adahello/CMakeLists.txt @@ -9,9 +9,13 @@ # ################################################# -add_custom_target( adahello.tar.gz ALL - COMMAND - ${TAR} zcf adahello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} main.adb app.kdevelop ada-Makefile app.kdevelop.filelist ) +set( _tarball_content main.adb app.kdevelop ada-Makefile app.kdevelop.filelist ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET adahello.tar.gz + FILES ${_tarball_content} +) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/adahello.tar.gz adahello.png diff --git a/languages/bash/app_templates/bashhello/CMakeLists.txt b/languages/bash/app_templates/bashhello/CMakeLists.txt index f9407ef6..2066787f 100644 --- a/languages/bash/app_templates/bashhello/CMakeLists.txt +++ b/languages/bash/app_templates/bashhello/CMakeLists.txt @@ -9,9 +9,13 @@ # ################################################# -add_custom_target( bashhello.tar.gz ALL - COMMAND - ${TAR} zcf bashhello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} app.sh app.kdevelop ) +set( _tarball_content app.sh app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET bashhello.tar.gz + FILES ${_tarball_content} +) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/bashhello.tar.gz bashhello.png 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 diff --git a/languages/fortran/app_templates/fortranhello/CMakeLists.txt b/languages/fortran/app_templates/fortranhello/CMakeLists.txt index 2ad47178..def9ddf3 100644 --- a/languages/fortran/app_templates/fortranhello/CMakeLists.txt +++ b/languages/fortran/app_templates/fortranhello/CMakeLists.txt @@ -9,12 +9,17 @@ # ################################################# -add_custom_target( fortranhello.tar.gz ALL - COMMAND ${TAR} zcf fortranhello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.f src-Makefile.am fortran-Makefile.am fortran-Makefile.cvs configure.in fortranhello.png app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET fortranhello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/java/app_templates/javahello/CMakeLists.txt b/languages/java/app_templates/javahello/CMakeLists.txt index ed845127..74f6f4b3 100644 --- a/languages/java/app_templates/javahello/CMakeLists.txt +++ b/languages/java/app_templates/javahello/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( javahello.tar.gz ALL - COMMAND ${TAR} zcf javahello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content Main.java build.xml javahello.filelist javahello.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET javahello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/java/app_templates/kappjava/CMakeLists.txt b/languages/java/app_templates/kappjava/CMakeLists.txt index 485362e7..9eb6a234 100644 --- a/languages/java/app_templates/kappjava/CMakeLists.txt +++ b/languages/java/app_templates/kappjava/CMakeLists.txt @@ -9,11 +9,16 @@ # ################################################# -add_custom_target( kappjava.tar.gz ALL - COMMAND ${TAR} zcf kappjava.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.java pref.java appview.java app_client.java appui.rc src-Makefile.am kappjava.png app.kdevelop subdirs ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET kappjava.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/java/app_templates/superwaba/CMakeLists.txt b/languages/java/app_templates/superwaba/CMakeLists.txt index 36ea20eb..4db2304f 100644 --- a/languages/java/app_templates/superwaba/CMakeLists.txt +++ b/languages/java/app_templates/superwaba/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( superwaba.tar.gz ALL - COMMAND ${TAR} zcf superwaba.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content superwaba.png sw.java src-Makefile sw.kdevelop sw.filelist ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET superwaba.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/pascal/app_templates/fpcgtk/CMakeLists.txt b/languages/pascal/app_templates/fpcgtk/CMakeLists.txt index 528103ad..f256b4d6 100644 --- a/languages/pascal/app_templates/fpcgtk/CMakeLists.txt +++ b/languages/pascal/app_templates/fpcgtk/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( fpcgtk.tar.gz ALL - COMMAND ${TAR} zcf fpcgtk.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.pp app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET fpcgtk.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/pascal/app_templates/fpchello/CMakeLists.txt b/languages/pascal/app_templates/fpchello/CMakeLists.txt index 5546441c..61afd1ea 100644 --- a/languages/pascal/app_templates/fpchello/CMakeLists.txt +++ b/languages/pascal/app_templates/fpchello/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( fpchello.tar.gz ALL - COMMAND ${TAR} zcf fpchello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.pp app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET fpchello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/pascal/app_templates/fpcsharedlib/CMakeLists.txt b/languages/pascal/app_templates/fpcsharedlib/CMakeLists.txt index 5a88ad1f..d67e458a 100644 --- a/languages/pascal/app_templates/fpcsharedlib/CMakeLists.txt +++ b/languages/pascal/app_templates/fpcsharedlib/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( fpcsharedlib.tar.gz ALL - COMMAND ${TAR} zcf fpcsharedlib.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.pp app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET fpcsharedlib.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/pascal/app_templates/pascalhello/CMakeLists.txt b/languages/pascal/app_templates/pascalhello/CMakeLists.txt index 7aa00e07..63d1dbaa 100644 --- a/languages/pascal/app_templates/pascalhello/CMakeLists.txt +++ b/languages/pascal/app_templates/pascalhello/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( pascalhello.tar.gz ALL - COMMAND ${TAR} zcf pascalhello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content main.pp app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET pascalhello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/perl/app_templates/perlhello/CMakeLists.txt b/languages/perl/app_templates/perlhello/CMakeLists.txt index 4c6efe3e..cfbf3eaa 100644 --- a/languages/perl/app_templates/perlhello/CMakeLists.txt +++ b/languages/perl/app_templates/perlhello/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( perlhello.tar.gz ALL - COMMAND ${TAR} zcf perlhello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.pl app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET perlhello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/php/app_templates/phphello/CMakeLists.txt b/languages/php/app_templates/phphello/CMakeLists.txt index 96c21eea..ba31468f 100644 --- a/languages/php/app_templates/phphello/CMakeLists.txt +++ b/languages/php/app_templates/phphello/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( phphello.tar.gz ALL - COMMAND ${TAR} zcf phphello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.php app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET phphello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/python/app_templates/pyqt/CMakeLists.txt b/languages/python/app_templates/pyqt/CMakeLists.txt index df072e5b..c8f349db 100644 --- a/languages/python/app_templates/pyqt/CMakeLists.txt +++ b/languages/python/app_templates/pyqt/CMakeLists.txt @@ -9,14 +9,19 @@ # ################################################# -add_custom_target( pyqt.tar.gz ALL - COMMAND ${TAR} zcf pyqt.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.py app.kdevelop fileopen.pyxpm fileprint.pyxpm filesave.pyxpm app-Makefile.am app-autogen.sh app-configure.ac documentdetails.ui missing install-sh mkinstalldirs pyqt-am-preproc.py templates-ui-dialog templates-ui-mainwin pyqt.png ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET pyqt.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/python/app_templates/pythonhello/CMakeLists.txt b/languages/python/app_templates/pythonhello/CMakeLists.txt index 07b6d4cc..66cf65a2 100644 --- a/languages/python/app_templates/pythonhello/CMakeLists.txt +++ b/languages/python/app_templates/pythonhello/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( pythonhello.tar.gz ALL - COMMAND ${TAR} zcf pythonhello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.py app.kdevelop pythonhello.png ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET pythonhello.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/languages/python/app_templates/pytk/CMakeLists.txt b/languages/python/app_templates/pytk/CMakeLists.txt index 8a0be77b..4cc099a0 100644 --- a/languages/python/app_templates/pytk/CMakeLists.txt +++ b/languages/python/app_templates/pytk/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( pytk.tar.gz ALL - COMMAND ${TAR} zcf pytk.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.py app.kdevelop pytk.png ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET pytk.tar.gz + FILES ${_tarball_content} +) install( FILES 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 diff --git a/languages/sql/app_templates/sqlsimple/CMakeLists.txt b/languages/sql/app_templates/sqlsimple/CMakeLists.txt index 5199dbb0..94429199 100644 --- a/languages/sql/app_templates/sqlsimple/CMakeLists.txt +++ b/languages/sql/app_templates/sqlsimple/CMakeLists.txt @@ -9,10 +9,15 @@ # ################################################# -add_custom_target( sqlsimple.tar.gz ALL - COMMAND ${TAR} zcf sqlsimple.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_content app.sql app.kdevelop ) +list( SORT _tarball_content ) + +tde_create_tarball( + TARGET sqlsimple.tar.gz + FILES ${_tarball_content} +) install( FILES diff --git a/parts/appwizard/common/CMakeLists.txt b/parts/appwizard/common/CMakeLists.txt index 8451d3f7..916a8157 100644 --- a/parts/appwizard/common/CMakeLists.txt +++ b/parts/appwizard/common/CMakeLists.txt @@ -9,18 +9,26 @@ # ################################################# -function( generate_tar output source ) - add_custom_target( ${output} ALL - COMMAND ${TAR} -zcf ${output} --exclude=.svn --exclude=*.cdbs-orig -C ${CMAKE_CURRENT_SOURCE_DIR}/${source} ${ARGN} ) -endfunction( ) +file( GLOB _admin_content RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} admin/* ) +list( + REMOVE_ITEM _admin_content admin/.git + admin/config.guess.cdbs-orig admin/config.sub.cdbs-orig +) + +file( GLOB _incadmin_content RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/incadmin incadmin/* ) +list( REMOVE_ITEM _incadmin_content config.guess.cdbs-orig config.sub.cdbs-orig ) -generate_tar( admin.tar.gz "" admin ) -generate_tar( gnome.tar.gz gnome macros ) -generate_tar( gnome2.tar.gz gnome2 macros ) -generate_tar( gnu.tar.gz gnu AUTHORS COPYING ChangeLog INSTALL NEWS README TODO ) -generate_tar( wxwidgets.tar.gz wx macros ) -generate_tar( incadmin.tar.gz incadmin config.guess config.sub depcomp install-sh ltmain.sh missing mkinstalldirs ) -generate_tar( scons.tar.gz scons configure admin/scons-mini.tar.bz2 admin/generic.py admin/kde.py ) +tde_create_tarball( TARGET admin.tar.gz FILES ${_admin_content} ) +tde_create_tarball( TARGET gnome.tar.gz SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/gnome ) +tde_create_tarball( TARGET gnome2.tar.gz SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/gnome2 ) +tde_create_tarball( TARGET gnu.tar.gz SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/gnu ) +tde_create_tarball( TARGET wxwidgets.tar.gz SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/wx ) +tde_create_tarball( + TARGET incadmin.tar.gz + SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/incadmin + FILES ${_incadmin_content} +) +tde_create_tarball( TARGET scons.tar.gz SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/scons ) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/admin.tar.gz |