summaryrefslogtreecommitdiff
path: root/test/API/separate.awk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-01-13 22:50:58 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-01-13 22:50:58 +0100
commit9b723c4ea768f71fc0bc69ba467c6240d18adf35 (patch)
tree84d6e4e61f569ef30c1ff526f75d36e262b32f8c /test/API/separate.awk
parent6252572a624c5bc65a6ed3a5778808e84510a8f7 (diff)
remove API dir. tests are disabled anyway.
Diffstat (limited to 'test/API/separate.awk')
-rw-r--r--test/API/separate.awk48
1 files changed, 0 insertions, 48 deletions
diff --git a/test/API/separate.awk b/test/API/separate.awk
deleted file mode 100644
index f7850c4f4..000000000
--- a/test/API/separate.awk
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/awk -f
-#
-# Usage: awk -f separate.awk foo.SUSv4.in
-# Input: http://www.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html#tag_13_77_03_06
-# Output: foo-$CODE.SUSv4.syms, foo.SUSv4.syms
-#
-# Copyright (C) 2010 Bernhard Reutner-Fischer
-# Public domain
-
-function get_code(line)
-{
- sub("\\]\\[.*", "", line)
- sub("\\[", "", line)
- sub(" ", "", line)
- return line
-}
-BEGIN{
- code="";# feature set; XSI, OB XSI, CX, etc
-
-}
-/\[Option Start\]/{
- code = get_code($0)
- next
-}
-/\[Option End\]/{ code = ""; next; }
-/.*/ {
- if (!hdrname) {
- split(FILENAME, fparts, ".")
- hdrname = fparts[1]
- stdname = fparts[2]
- if (fparts[3] != "in") {
- print "inputfilename may not be ok, exiting."
- exit(1)
- }
- }
- if (code) {
- fname = hdrname "-" code "." stdname ".syms"
- } else {
- fname = hdrname "." stdname ".syms"
- }
- sub("^*", "", $0)
- if (file[code]) {
- print $0 >> fname
- } else {
- print $0 > fname
- file[code] = 1
- }
-}