diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-15 15:01:01 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-15 15:01:01 +0000 |
commit | 55bde1a8b9bb8b6a5f0ccde04e56ba7dbcebdc65 (patch) | |
tree | 76555886a95442237d964aea7fc93e113b81dd49 /tools | |
parent | d489558fa17f85d11b0e766efb1cf377620114f1 (diff) | |
download | execline-55bde1a8b9bb8b6a5f0ccde04e56ba7dbcebdc65.tar.xz |
shell names, first draft
Diffstat (limited to 'tools')
-rw-r--r-- | tools/convert-one | 5 | ||||
-rwxr-xr-x | tools/install-bins | 9 | ||||
-rwxr-xr-x | tools/link-bins | 12 | ||||
-rw-r--r-- | tools/name-table | 16 | ||||
-rwxr-xr-x | tools/rename-bins | 5 |
5 files changed, 47 insertions, 0 deletions
diff --git a/tools/convert-one b/tools/convert-one new file mode 100644 index 0000000..7b914ea --- /dev/null +++ b/tools/convert-one @@ -0,0 +1,5 @@ +#!/bin/sh + +old="$1" +new="$2" +html="$3" diff --git a/tools/install-bins b/tools/install-bins new file mode 100755 index 0000000..143843a --- /dev/null +++ b/tools/install-bins @@ -0,0 +1,9 @@ +#!/bin/sh -e + +install="$1" +bindir="$2" +destdir="$3" + +while read old new html ; do + "$install" -D -m 600 "$new" "$destdir/$bindir/$new" +done < ./tools/name-table diff --git a/tools/link-bins b/tools/link-bins new file mode 100755 index 0000000..5e45ec5 --- /dev/null +++ b/tools/link-bins @@ -0,0 +1,12 @@ +#!/bin/sh -e + +install="$1" +bindir="$2" +sproot="${3#x}" +home="${4#x}" +exthome="${5#x}" +destdir="$6" + +while read old new html ; do + "$install" -D -m 600 "$new" "$destdir/$bindir/$new" +done < ./tools/name-table diff --git a/tools/name-table b/tools/name-table new file mode 100644 index 0000000..4494f01 --- /dev/null +++ b/tools/name-table @@ -0,0 +1,16 @@ +background & & +backtick ` ` +define = = +dollarat $@ $@ +elglob * * +fdclose >&- >&- +fdmove >& >& +fdswap <> <> +foreground ; ; +getpid ! ! +heredoc << << +homeof ~ ~ +if && && +importas $ $ +pipeline | | +redirfd < < diff --git a/tools/rename-bins b/tools/rename-bins new file mode 100755 index 0000000..a613278 --- /dev/null +++ b/tools/rename-bins @@ -0,0 +1,5 @@ +#!/bin/sh -e + +while read old new html ; do + mv -f "./$old" "./$new" +done < ./tools/name-table |