diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..09666040 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,17 @@ +# remove files from deployment using `git archive` + +# git files +.gitattributes export-ignore +.gitignore export-ignore + + +# several files and directories we never want to export +# a little bit belt and braces as the most of these files +# should never ever be in the repository + +.*~ export-ignore +.kdev4 export-ignore + +/build export-ignore +/temp export-ignore +/tmp export-ignore diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ba59ab4..cf4f311e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,18 +98,3 @@ if(BUILD_DOCUMENTATION) COMPONENT Devel ) endif() - -# building tarball with CPack ------------------------------------------------- -# To create a source distribution, type: -# make package_source -include(InstallRequiredSystemLibraries) -set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") -set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") -set(CPACK_PACKAGE_VENDOR "") -set(CPACK_PACKAGE_VERSION_MAJOR ${LIBFM_QT_VERSION_MAJOR}) -set(CPACK_PACKAGE_VERSION_MINOR ${LIBFM_QT_VERSION_MINOR}) -set(CPACK_PACKAGE_VERSION_PATCH ${LIBFM_QT_VERSION_PATCH}) -set(CPACK_GENERATOR TBZ2) -set(CPACK_SOURCE_GENERATOR TBZ2) -set(CPACK_SOURCE_IGNORE_FILES /build/;.gitignore;.*~;.git;.kdev4;temp) -include(CPack)