changed genfiles to shell script
authoreck <none@none>
Wed, 3 Jan 1990 16:58:22 +0000 (16:58 +0000)
committereck <none@none>
Wed, 3 Jan 1990 16:58:22 +0000 (16:58 +0000)
lang/cem/libcc.ansi/ctype/.distr
lang/cem/libcc.ansi/ctype/Makefile
lang/cem/libcc.ansi/ctype/genfiles [new file with mode: 0644]

index 3c80070..b052351 100644 (file)
@@ -1,4 +1,4 @@
 LIST
 Makefile
 char.tab
-genfiles.c
+genfiles
index c3e25a3..3a20ca5 100644 (file)
@@ -5,16 +5,11 @@ clean:
                isalnum.c isalpha.c iscntrl.c isdigit.c isgraph.c \
                islower.c isprint.c ispunct.c isspace.c isupper.c \
                isxdigit.c isascii.c tolower.c toupper.c chartab.c \
-               genfiles OLIST
-
-# genfiles should not be compiled with $(CC) because we might be
-# cross-compiling, in which case $(CC) does not yield a runnable object.
-genfiles: genfiles.c
-       cc genfiles.c -o genfiles
+               OLIST
 
 chartab.c: char.tab
        tabgen -fchar.tab > chartab.c
 
 isalnum.c isalpha.c iscntrl.c isdigit.c isgraph.c islower.c isprint.c \
 ispunct.c isspace.c isupper.c isxdigit.c isascii.c tolower.c toupper.c: genfiles
-       genfiles
+       sh genfiles
diff --git a/lang/cem/libcc.ansi/ctype/genfiles b/lang/cem/libcc.ansi/ctype/genfiles
new file mode 100644 (file)
index 0000000..7c115e9
--- /dev/null
@@ -0,0 +1,12 @@
+
+for i in isalnum isalpha iscntrl isdigit isgraph islower isprint \
+       ispunct isspace isupper isxdigit isascii toupper tolower
+do
+sed "s/xxxx/$i/" > $i.c << 'EOF'
+#include       <ctype.h>
+
+int (xxxx)(int c) {
+       return xxxx(c);
+}
+EOF
+done