Skip to content

Commit 7f26554

Browse files
committed
Drop .cpp from miscellaneous scripts
1 parent 1fe73cd commit 7f26554

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
*.tas.cpp linguist-language=tenyr
1+
*.tas linguist-language=tenyr

scripts/cloc-lang-def

-9
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,3 @@ tenyr
55
extension tas
66
3rd_gen_scale 0.15
77
end_of_line_continuation \\$
8-
tenyr + cpp
9-
filter remove_matches ^\s*//
10-
filter remove_inline //.*$
11-
filter remove_inline #.*$
12-
filter call_regexp_common C
13-
extension tas.cpp
14-
extension th
15-
3rd_gen_scale 0.20
16-
end_of_line_continuation \\$

scripts/dogfood.sh

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Usage: dogfood.sh tempfile-stem path-to-tas file.tas[.cpp] [ files... ]
2+
# Usage: dogfood.sh tempfile-stem path-to-tas file.tas [ files... ]
33
set -o pipefail
44
if (( V > 1 )) ; then ECHO=echo ; else ECHO=true ; fi
55
here=`dirname $BASH_SOURCE`
@@ -64,12 +64,7 @@ for flags in -v "" ; do
6464
for fmt in memh text ; do
6565
for file in $* ; do
6666
trap "rm $base.$fmt.{en,de}.[0123]" EXIT
67-
if [[ $file = *.cpp ]] ; then
68-
pp="${CC:-cc} -E -I$here/../lib"
69-
else
70-
pp=cat
71-
fi
72-
$pp $file | cycle $fmt
67+
cat $file | cycle $fmt
7368
if [[ $? != 0 ]] ; then fail $fmt $file ; fi
7469
match $fmt en $file
7570
done & pids+=( $! )

0 commit comments

Comments
 (0)