#!/bin/sh # cmake doesn't use colors when TERM is emacs, so no problem. #export TERM=dumb if test "$1" = "-k"; then shift; fi if test $# -eq 0 -a -f make.sh; then exec ./make.sh else cmake_in_parent=0 cwd=$PWD if test ! -f CMakeLists.txt && test -f ../CMakeLists.txt; then cmake_in_parent=1 cd .. fi jvalue=`~/txt/kde/scripts/build/jvalue` if test $# -eq 0; then arg= else arg="$1" if test "$arg" = "install"; then if test -f Makefile.am; then # Build with -j before install echo Compiling makeobj -k -j $jvalue echo Installing exec makeobj install fi # else: with argument like kfoo.o elif test $cmake_in_parent -eq 1; then arg=`basename $cwd`/"$arg" fi fi echo "calling makeobj -j $jvalue $arg" # The sed is for xemacs's lack of utf8 support makeobj -j $jvalue $arg 2>&1 | sed -e 's/[‘’]//g' fi