diff options
Diffstat (limited to 'create_all_tarballs')
-rwxr-xr-x | create_all_tarballs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/create_all_tarballs b/create_all_tarballs index 1ec8f12..1434f77 100755 --- a/create_all_tarballs +++ b/create_all_tarballs @@ -80,7 +80,9 @@ fi # Set target version if [ -z "$TARGET" ]; then - if [ -f main/core/tdelibs/tdecore/tdeversion.h ]; then + if [ -f main/dependencies/tde-cmake/modules/TDEVersion.cmake ]; then + tdeversionHeader=main/dependencies/tde-cmake/modules/TDEVersion.cmake + elif [ -f main/core/tdelibs/tdecore/tdeversion.h ]; then tdeversionHeader=main/core/tdelibs/tdecore/tdeversion.h elif [ -f main/core/tdelibs/kdecore/kdeversion.h ]; then tdeversionHeader=main/core/tdelibs/kdecore/kdeversion.h @@ -93,7 +95,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 export TARGET |