blob: a1266fcf017c91e9250ecbfa18c7968b331b3bfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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)"
|