aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/Makefile.am6
-rwxr-xr-xbin/dosubst.awk47
-rwxr-xr-xbin/grephdr.sh4
-rwxr-xr-xbin/grepsrc.sh4
-rwxr-xr-xbin/pogen.sh9
-rwxr-xr-xbin/rename.sh7
6 files changed, 0 insertions, 77 deletions
diff --git a/bin/Makefile.am b/bin/Makefile.am
deleted file mode 100644
index 6c11e26ef..000000000
--- a/bin/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
1EXTRA_DIST = \
2 dosubst.awk \
3 grephdr.sh \
4 grepsrc.sh \
5 pogen.sh \
6 rename.sh
diff --git a/bin/dosubst.awk b/bin/dosubst.awk
deleted file mode 100755
index 3ed0403dd..000000000
--- a/bin/dosubst.awk
+++ /dev/null
@@ -1,47 +0,0 @@
1# Dedicated to the public domain.
2# SPDX-License-Identifier: 0BSD
3#
4# awk script to substitute variables in scripts and applications.
5#
6# You can pass these variables to it in Makefiles or on the
7# commandline:
8# bdir="$(bindir)"
9# py="$(PYTHON)"
10# awkay="$(AWK_BINARY)"
11# pfx="$(prefix)"
12# prl="$(PERL)"
13# sysconfdirectory="$(sysconfdir)"
14# pkgdatadirectory="$(pkgdatadir)"
15
16{
17
18 if (/@bindirectory@/) {
19 gsub("@bindirectory@",bdir) ;
20 }
21
22 if (/@PYTHONEXE@/) {
23 gsub("@PYTHONEXE@",py) ;
24 }
25
26 if (/@AWKEXE@/) {
27 gsub("@AWKEXE@",awkay) ;
28 }
29
30 if (/@SUBSTPREFIX@/) {
31 gsub("@SUBSTPREFIX@",pfx) ;
32 }
33
34 if (/@PERLEXE@/) {
35 gsub("@PERLEXE@",prl) ;
36 }
37
38 if (/@SYSCONFDIR@/) {
39 gsub("@SYSCONFDIR@",sysconfdirectory) ;
40 }
41
42 if (/@PKGDATADIRECTORY@/) {
43 gsub("@PKGDATADIRECTORY@",pkgdatadirectory) ;
44 }
45
46 print $0 ;
47}
diff --git a/bin/grephdr.sh b/bin/grephdr.sh
deleted file mode 100755
index dd9050335..000000000
--- a/bin/grephdr.sh
+++ /dev/null
@@ -1,4 +0,0 @@
1#!/bin/sh
2# This script is in the public domain.
3# grepsrc.sh string --- greps for string over all header files
4find . -name "*.h" -print | grep -v "#" | xargs grep "$@"
diff --git a/bin/grepsrc.sh b/bin/grepsrc.sh
deleted file mode 100755
index eb2d5e462..000000000
--- a/bin/grepsrc.sh
+++ /dev/null
@@ -1,4 +0,0 @@
1#!/bin/sh
2# This script is in the public domain.
3# grepsrc.sh string --- greps for string over all C files
4find . -name "*.c" -print | grep -v "#" | xargs grep -n "$*"
diff --git a/bin/pogen.sh b/bin/pogen.sh
deleted file mode 100755
index b97ef046a..000000000
--- a/bin/pogen.sh
+++ /dev/null
@@ -1,9 +0,0 @@
1#!/bin/sh
2# This script is in the public domain.
3
4# Set language domain to C for a more stable sort!
5export LANG=C
6
7find src -name "*.c" | grep -v \# | grep -v /test_ | grep -v /perf_ | grep -v _old | grep -v chat | grep -v .libs/ | sort > po/POTFILES.in
8grep -l _\( `find src -name "*.h"` | grep -v "platform.h" | grep -v _old | grep -v chat | sort >> po/POTFILES.in
9
diff --git a/bin/rename.sh b/bin/rename.sh
deleted file mode 100755
index eec77e277..000000000
--- a/bin/rename.sh
+++ /dev/null
@@ -1,7 +0,0 @@
1#!/bin/sh
2# This script is in the public domain.
3for n in `find * -name "*.c"` `find * -name "*.h"` `find * -name "*.am"` `find * -name "*.conf"` `find * -name "*.conf.in"`
4do
5 cat $n | sed -e "s/$1/$2/g" > $n.new
6 mv $n.new $n || echo "Move failed: $n.new to $n"
7done