diff options
Diffstat (limited to 'create_tarball')
-rwxr-xr-x | create_tarball | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/create_tarball b/create_tarball index b19dec6..6bc534e 100755 --- a/create_tarball +++ b/create_tarball @@ -57,7 +57,9 @@ MODULE=${SUBROOT#$TDEROOT/main/} # Set target version if [ -z "$TARGET" ]; then - if [ -f $TDEROOT/main/core/tdelibs/tdecore/tdeversion.h ]; then + if [ -f $TDEROOT/main/dependencies/tde-cmake/modules/TDEVersion.cmake ]; then + tdeversionHeader=$TDEROOT/main/dependencies/tde-cmake/modules/TDEVersion.cmake + elif [ -f $TDEROOT/main/core/tdelibs/tdecore/tdeversion.h ]; then tdeversionHeader=$TDEROOT/main/core/tdelibs/tdecore/tdeversion.h elif [ -f $TDEROOT/main/core/tdelibs/kdecore/kdeversion.h ]; then tdeversionHeader=$TDEROOT/main/core/tdelibs/kdecore/kdeversion.h @@ -70,7 +72,7 @@ if [ -z "$TARGET" ]; then echo "Cannot find TDE core headers. Exiting." exit 1 fi - TARGET=`sed -n 's|#define [KT]DE_VERSION_STRING "[^0-9]\?\([^ "]*\).*|\1|p' $tdeversionHeader` + TARGET=`sed -n 's/^[ \t]*\(set( DEFAULT_VERSION\|#define [KT]DE_VERSION_STRING\) "[^0-9]\?\([^ ~"]*\).*/\2/p' $tdeversionHeader` fi # Check branch by target |