diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
commit | 99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch) | |
tree | eff34cf0762227f6baf2a93e8fef48d4bed2651c /scripts/adddebug | |
parent | 1c104292188541106338d4940b0f04beeb4301a0 (diff) | |
download | tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip |
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'scripts/adddebug')
-rwxr-xr-x | scripts/adddebug | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/adddebug b/scripts/adddebug index 8968e89c..912fef71 100755 --- a/scripts/adddebug +++ b/scripts/adddebug @@ -23,7 +23,7 @@ if test -z $ndebug; then xpr="$xpr;"'s/[\t ]-DNDEBUG\b//g' xpr="$xpr;"'s/[\t ]-DNO_DEBUG\b//g' fi -find . $mxdp -name Makefile -exec perl -pi -e "$xpr" {} \; +tqfind . $mxdp -name Makefile -exec perl -pi -e "$xpr" {} \; using_unsermake= if head -n 1 Makefile | grep unsermake >/dev/null; then @@ -43,7 +43,7 @@ if test "$using_unsermake" = "new"; then # warning this uses sed, so the '?' in the perl regexp above doesn't work here cxxflags=`grep ^CXXFLAGS $toplevelMakefile | sed -e 's/[\t ]-O[1-9]\b//g;s/[\t ]-march=\S+\b//g;s/[\t ]-DNDEBUG\b//g;s/[\t ]-DNO_DEBUG\b//g'` xpr="s/^CXXFLAGS\s*=.*//; if ( /^\.FORWARDS:/) { "'$_'" .= \"\n$cxxflags -g3\"; }" - find . $mxdp -name Makefile -exec perl -pi -e "$xpr" {} \; + tqfind . $mxdp -name Makefile -exec perl -pi -e "$xpr" {} \; else echo "ERROR: top_builddir is $top_builddir but $makevars not found" fi @@ -56,7 +56,7 @@ elif test "$using_unsermake" = "old"; then # warning this uses sed, so the '?' in the perl regexp above doesn't work here cxxflags=`grep ^CXXFLAGS $makevars | sed -e 's/[\t ]-O[1-9]\b//g;s/[\t ]-march=\S+\b//g;s/[\t ]-DNDEBUG\b//g;s/[\t ]-DNO_DEBUG\b//g'` xpr="s/^CXXFLAGS\s*=.*//; if ( /^include .*MakeVars$/) { "'$_'" .= \"\n$cxxflags -g3\"; }" - find . $mxdp -name Makefile -exec perl -pi -e "$xpr" {} \; + tqfind . $mxdp -name Makefile -exec perl -pi -e "$xpr" {} \; else echo "ERROR: top_builddir is $top_builddir but $makevars not found" fi |