diff options
Diffstat (limited to 'cmakemodules/makedist.sh.in')
-rwxr-xr-x | cmakemodules/makedist.sh.in | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/cmakemodules/makedist.sh.in b/cmakemodules/makedist.sh.in deleted file mode 100755 index 6df00a5..0000000 --- a/cmakemodules/makedist.sh.in +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -VERSION=@VERSION@ -SRCROOT=@CMAKE_SOURCE_DIR@ -BUILDDIR=@CMAKE_BINARY_DIR@ -PROJECT=@PROJECT_NAME@ -KDESVN_VERSION=@KDESVN_VERSION@ - -EXCLUDE="@DIST_EXCLUDE@" -EXPORT_DIR="${PROJECT}-${VERSION}" - -if [ ! -d ${SRCROOT}/.svn ]; then - echo "This script must run for a svn dir!" - exit 1 -fi - -echo "Exporting source tree" -svn export "${SRCROOT}" ${EXPORT_DIR} - -echo "Copy required files to export" -cp ${BUILDDIR}/${PROJECT}.spec ${EXPORT_DIR} -cp ${SRCROOT}/doc/*.cache.bz2 ${EXPORT_DIR}/doc - -echo "Removing not needed stuff" -for i in $EXCLUDE ; do - echo " $i" - rm -rf $EXPORT_DIR/$i -done - -echo "Generating archive" -tar cjf ${BUILDDIR}/${PROJECT}-${VERSION}.tar.bz2 ${EXPORT_DIR} - -echo "Cleaning up" -rm -rf ${EXPORT_DIR} - -if [ "x$1" = "xrpm" ]; then - KDESVN_VERSION=${KDESVN_VERSION} rpmbuild -tb ${BUILDDIR}/${PROJECT}-${VERSION}.tar.bz2 -fi |