Check-in [9aad02dffb]
Overview
Comment:Updated "make test" to not try to run sed on binary files
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9aad02dffb88206c054b7ca2adeb73efb8777321
User & Date: rkeene on 2014-06-21 15:31:30.501
Other Links: manifest | tags
Context
2014-06-21
15:43
Updated to name Test TCL script something other than "test" so it does not conflict with the "test" target in Make check-in: ecb01f7ca0 user: rkeene tags: trunk
15:31
Updated "make test" to not try to run sed on binary files check-in: 9aad02dffb user: rkeene tags: trunk
14:49
Updated to link to stubs check-in: 82593f3a0f user: rkeene tags: trunk
Changes
86
87
88
89
90
91
92
93







94
95
96
97
98
99
100
86
87
88
89
90
91
92

93
94
95
96
97
98
99
100
101
102
103
104
105
106







-
+
+
+
+
+
+
+







			cp "$$src" "$$dst"; \
		done
	$(srcdir)/patch-headers.sh "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include"

test:
	rm -rf __TMP__
	$(MAKE) install tcllibdir=$(shell pwd)/__TMP__
	-if [ "$(PACKAGE_VERSION)" = '@@VERS@@' ]; then cd __TMP__/* && sed -i 's|@@VERS@@|0.0.0.11|g' tcc4tcl.@SHOBJEXT@ pkgIndex.tcl; fi
	-if [ "$(PACKAGE_VERSION)" = '@@VERS@@' ]; then cd __TMP__/* && ( \
		for file in tcc4tcl.tcl pkgIndex.tcl; do \
			sed 's/@@VERS@@/0.0/g' "$${file}" > "$${file}.new"; \
			cat "$${file}.new" > "$${file}"; \
			rm -f "$${file}.new"; \
		done \
	); fi
	$(TCLSH) $(srcdir)/test __TMP__
	echo Tests Completed OK > TEST-STATUS
	rm -rf __TMP__

clean:
	rm -f tcc4tcl.o
	rm -f tcc4tcl.@SHOBJEXT@ tcc4tcl-static.a
26
27
28
29
30
31
32
33

34
35
36
37
38
39
40
26
27
28
29
30
31
32

33
34
35
36
37
38
39
40







-
+







#     @@VERS@@ becomes the utility version
#     @@DATE@@ becomes the current date
DOCS="README"
DOC_HDR="HEADER"

# These files follow the same convention as DOCS, but don't have the header
# tacked onto them.
UPDATE_VARS="configure.ac configure"
UPDATE_VARS="configure.ac configure tcc4tcl.tcl"

# This script is executed immediately after copying the files
# to a temp directory to attempt to compile
BEFORE="build/pre.sh"

# This script is executed immediately prior to creation of the
# tarball
Modified tcc4tcl.c from [24c78e2cb7] to [927889c501].
282
283
284
285
286
287
288
289

290
291
292
293
282
283
284
285
286
287
288

289

290
291
292







-
+
-



int Tcc4tcl_Init(Tcl_Interp *interp) {
#ifdef USE_TCL_STUBS
	if (Tcl_InitStubs(interp, "8.4" , 0) == 0L) {
		return TCL_ERROR;
	}
#endif

	Tcl_CreateObjCommand(interp, PACKAGE_NAME, Tcc4tclCreateCmd, NULL, NULL);
	Tcl_CreateObjCommand(interp, "tcc4tcl", Tcc4tclCreateCmd, NULL, NULL);
	Tcl_PkgProvide(interp, PACKAGE_NAME, PACKAGE_VERSION);

	return TCL_OK;
}
391
392
393
394
395
396
397


391
392
393
394
395
396
397
398
399







+
+

	append cbody "}" "\n"

	return [list $code $cbody $wname]
}

namespace eval tcc4tcl {namespace export cproc new}

package provide tcc4tcl "@@VERS@@"