summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-03-15 15:39:45 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-03-15 15:39:45 +0000
commite05986c02a6e2c71a8ec0715edf1d9c536a95898 (patch)
tree59f324e34a6b681b06eb7498b8c8dd722ee435d4 /tools
parent55bde1a8b9bb8b6a5f0ccde04e56ba7dbcebdc65 (diff)
downloadexecline-e05986c02a6e2c71a8ec0715edf1d9c536a95898.tar.xz
Second draft
Diffstat (limited to 'tools')
-rwxr-xr-xtools/install-bins2
-rwxr-xr-xtools/link-bins9
-rwxr-xr-xtools/rename-bins5
-rwxr-xr-xtools/symlink-bins12
4 files changed, 14 insertions, 14 deletions
diff --git a/tools/install-bins b/tools/install-bins
index 143843a..db262da 100755
--- a/tools/install-bins
+++ b/tools/install-bins
@@ -5,5 +5,5 @@ bindir="$2"
destdir="$3"
while read old new html ; do
- "$install" -D -m 600 "$new" "$destdir/$bindir/$new"
+ "$install" -D -m 0755 "$new" "$destdir/$bindir/$new"
done < ./tools/name-table
diff --git a/tools/link-bins b/tools/link-bins
index 5e45ec5..50e7981 100755
--- a/tools/link-bins
+++ b/tools/link-bins
@@ -1,12 +1,5 @@
#!/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"
+ ln -f "./$old" "./$new"
done < ./tools/name-table
diff --git a/tools/rename-bins b/tools/rename-bins
deleted file mode 100755
index a613278..0000000
--- a/tools/rename-bins
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh -e
-
-while read old new html ; do
- mv -f "./$old" "./$new"
-done < ./tools/name-table
diff --git a/tools/symlink-bins b/tools/symlink-bins
new file mode 100755
index 0000000..2e8f790
--- /dev/null
+++ b/tools/symlink-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 -l "../package/admin/execline/command/$new" "$destdir/command/$new"
+done < ./tools/name-table