diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 19:32:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 19:32:49 +0000 |
commit | 2e77c0b4ce1781d87a532022d8ebaccff0fb2b17 (patch) | |
tree | 26280a750b189b6bc989565eed26a256bb8fd9bb /unpack_local_scons.sh | |
download | kstreamripper-2e77c0b4ce1781d87a532022d8ebaccff0fb2b17.tar.gz kstreamripper-2e77c0b4ce1781d87a532022d8ebaccff0fb2b17.zip |
Added kstreamripper
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kstreamripper@1239912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'unpack_local_scons.sh')
-rwxr-xr-x | unpack_local_scons.sh | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/unpack_local_scons.sh b/unpack_local_scons.sh new file mode 100755 index 0000000..a1266fc --- /dev/null +++ b/unpack_local_scons.sh @@ -0,0 +1,61 @@ +#!/bin/sh + +BOLD="\033[1m" +RED="\033[91m" +GREEN="\033[92m" +YELLOW="\033[93m" +CYAN="\033[96m" +NORMAL="\033[0m" + +#bunzip2 scons-mini.tar.bz2 +#tar xvf scons-mini.tar + +# if kde is there a recent tar should be too +tar xjvf scons-mini.tar.bz2 + +cat > Makefile << EOF +## Makefile automatically generated by unpack_local_scons.sh + +### To use scons when installed globally use +#SCONS=scons +### To run the local version instead, define +SCONS=./scons + +# scons : compile +# scons -c : clean +# scons install : install +# scons -c install : uninstall and clean + +# default target : use scons to build the programs +all: + \$(SCONS) -Q + +### There are several possibilities to help debugging : +# scons --debug=explain, scons --debug=tree .. +# +### To optimize the runtime, use +# scons --max-drift=1 --implicit-deps-unchanged +debug: + \$(SCONS) -Q --debug=tree + +clean: + \$(SCONS) -c + +install: + \$(SCONS) install + +uninstall: + \$(SCONS) -c install + +## this target creates a tarball of the project +dist: + \$(SCONS) dist +EOF + + +echo "" +echo -e $GREEN"A minimum scons distribution has been unpacked right here" +echo -e $GREEN"you can now run : "$NORMAL +echo -e $BOLD"./scons"$NORMAL +echo -e $BOLD"./scons install$NORMAL (as root probably)" + |