summaryrefslogtreecommitdiffstats
path: root/parts/appwizard
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-30 01:12:11 +0200
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-08-01 17:56:51 +0900
commit4d7a2f4b463fbdf0cf4736f2f636c5672bd972a7 (patch)
tree87d63f39a35535d6ba1159c658270ae0a8299694 /parts/appwizard
parent96fa25303818e6107b72ba624659004751d45ad1 (diff)
downloadtdevelop-4d7a2f4b463fbdf0cf4736f2f636c5672bd972a7.tar.gz
tdevelop-4d7a2f4b463fbdf0cf4736f2f636c5672bd972a7.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> (cherry picked from commit c7d308a9ba6c0ef1639b7b78848a3dd2117fde0a)
Diffstat (limited to 'parts/appwizard')
-rw-r--r--parts/appwizard/common/CMakeLists.txt30
1 files changed, 19 insertions, 11 deletions
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