Overview
Context
Changes
Added build-common.sh version [1b93b7f590].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
#! /bin/bash
set -e
case "$1" in
clean|distclean)
rm -rf out inst
rm -f libsystem.a system.o system.so
rm -f system.tcl.h
exit 0
;;
esac
./stringify.tcl system.tcl > system.tcl.h
|
| | | | | | | | | | | | |
Added build-dyn.sh version [02da656833].
|
1
2
3
4
5
6
7
8
9
10
11
12
|
+
+
+
+
+
+
+
+
+
+
+
+
|
# /bin/bash
# Perform common build options
. build-common.sh
# Compile using the same options as Tcl
TCLCONFIGSH="$(find /usr/lib /usr/local/lib /lib -name tclConfig.sh -print -quit)"
. "${TCLCONFIGSH}"
echo "${TCL_CC} -Wall -DUSE_TCL_STUBS=1 ${TCL_DEFS} ${TCL_INCLUDE_SPEC} ${TCL_STUB_LIB_SPEC} -shared -rdynamic -o system.so system.c"
eval ${TCL_CC} -Wall -DUSE_TCL_STUBS=1 ${TCL_DEFS} ${TCL_INCLUDE_SPEC} ${TCL_STUB_LIB_SPEC} -shared -rdynamic -o system.so system.c
|
| | | | | | | | | | |
Added build-static.sh version [a001c327e9].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
#! /bin/bash
# Perform common build options
. build-common.sh
# Define variables
KITCREATORROOT="$(readlink -f '..')"
# Compile using the same options as Tcl
TCLCONFIGSH='/usr/lib/tclConfig.sh'
. "${TCLCONFIGSH}"
echo "diet ${TCL_CC} ${TCL_DEFS} ${TCL_INCLUDE_SPEC} -o system.o -c system.c"
eval diet ${TCL_CC} ${TCL_DEFS} ${TCL_INCLUDE_SPEC} -o system.o -c system.c
ar rcu libsystem.a system.o
ranlib libsystem.a
|
| | | | | | | | | | | | | | | |
Added build.sh version [ad274edd90].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
#! /bin/bash
# Perform common build options
. build-common.sh
# Define variables
KITCREATORROOT="$(readlink -f '..')"
# Compile using the same options as Tcl
TCLCONFIGSH="${KITCREATORROOT}/tcl/inst/lib/tclConfig.sh"
. "${TCLCONFIGSH}"
echo "${TCL_CC} ${TCL_DEFS} ${TCL_INCLUDE_SPEC} -o system.o -c system.c"
eval ${TCL_CC} ${TCL_DEFS} ${TCL_INCLUDE_SPEC} -o system.o -c system.c
ar rcu libsystem.a system.o
ranlib libsystem.a
mkdir -p inst/lib/system1.0
mkdir -p out/lib/system1.0
cp libsystem.a inst/lib/system1.0
cp pkgIndex.tcl out/lib/system1.0
|
| | | | | | | | | | | | | | | | | | | | |
Added pkgIndex.tcl version [1495e7ac95].
|
1
|
+
|
package ifneeded system 0.1 [list load "" system]
|
Added stringify.tcl version [07e25e6903].
|
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
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
#! /usr/bin/env tclsh
proc stringifyfile {filename {key 0}} {
catch {
set fd [open $filename r]
}
if {![info exists fd]} {
return ""
}
set data [read -nonewline $fd]
close $fd
foreach line [split $data \n] {
set line [string map [list "\\" "\\\\" "\"" "\\\""] $line]
append ret " \"$line\\n\"\n"
}
return $ret
}
foreach file $argv {
puts -nonewline [stringifyfile $file]
}
exit 0
|
| | | | | | | | | | | | | | | | | | | | | | | | | |
Added system.c version [0957cdeb4b].