summaryrefslogtreecommitdiffstats
path: root/Lib/plat-linux/regen
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-09-08 18:38:46 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-09-08 18:38:46 (GMT)
commit20737cc91e823b6b17fff16574283c034c99d641 (patch)
tree6b2a4ea17a54ba493a2b75e4196b1426e37f8031 /Lib/plat-linux/regen
parent1699757901c8374b063fb585110780bb82faa3b2 (diff)
downloadcpython-20737cc91e823b6b17fff16574283c034c99d641.zip
cpython-20737cc91e823b6b17fff16574283c034c99d641.tar.gz
cpython-20737cc91e823b6b17fff16574283c034c99d641.tar.bz2
Issue #28027: Remove Lib/plat-* files
Diffstat (limited to 'Lib/plat-linux/regen')
-rwxr-xr-xLib/plat-linux/regen33
1 files changed, 0 insertions, 33 deletions
diff --git a/Lib/plat-linux/regen b/Lib/plat-linux/regen
deleted file mode 100755
index 10633cb..0000000
--- a/Lib/plat-linux/regen
+++ /dev/null
@@ -1,33 +0,0 @@
-#! /bin/sh
-case `uname` in
-Linux*|GNU*) ;;
-*) echo Probably not on a Linux system 1>&2
- exit 1;;
-esac
-if [ -z "$CC" ]; then
- echo >&2 "$(basename $0): CC is not set"
- exit 1
-fi
-headers="sys/types.h netinet/in.h dlfcn.h"
-incdirs="$(echo $($CC -v -E - < /dev/null 2>&1|awk '/^#include/, /^End of search/' | grep '^ '))"
-if [ -z "$incdirs" ]; then
- incdirs="/usr/include"
-fi
-for h in $headers; do
- absh=
- for d in $incdirs; do
- if [ -f "$d/$h" ]; then
- absh="$d/$h"
- break
- fi
- done
- if [ -n "$absh" ]; then
- absheaders="$absheaders $absh"
- else
- echo >&2 "$(basename $0): header $h not found"
- exit 1
- fi
-done
-
-set -x
-${H2PY:-h2py} -i '(u_long)' $absheaders