summaryrefslogtreecommitdiffhomepage
path: root/aux
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-31 17:56:17 +0000
committermidipix <writeonce@midipix.org>2024-03-31 18:07:04 +0000
commitc348919cf1f5014de375fe95303c84a728d6f908 (patch)
tree4e35b33792781df2e579acfcf26a1eaaacb2a134 /aux
parent900387afb174c430575f119f51679c21f7f4bd46 (diff)
downloadslibtool-c348919cf1f5014de375fe95303c84a728d6f908.tar.bz2
slibtool-c348919cf1f5014de375fe95303c84a728d6f908.tar.xz
auxiliary files: added slibtool.sh (optional shell wrapper around the utility).
Diffstat (limited to 'aux')
-rwxr-xr-xaux/slibtool.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/aux/slibtool.sh b/aux/slibtool.sh
new file mode 100755
index 0000000..0bde87d
--- /dev/null
+++ b/aux/slibtool.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+#####################################################################
+## slibtool: a strong libtool implementation, written in C ##
+## Copyright (C) 2016--2024 SysDeer Technologies, LLC ##
+## Released under the Standard MIT License; see COPYING.SLIBTOOL. ##
+#####################################################################
+
+#####################################################################
+## slibtool.sh: a backward compatible slibtool wrapper script ##
+## ---------------------------------------------------------- ##
+## This script only exists to satisfy build-time requirements in ##
+## projects that directly invoke the generated libtool script at ##
+## configure time (bad practice to beging with, should never be ##
+## necessary in the first place). ##
+## ##
+## By default, slibtool.sh is _NOT_ copied to a project's build ##
+## directory. If found by configure, however (either as a symlink ##
+## to the system installed slibtool.sh or as a physical copy of ##
+## the above, configure shall create ``libtool'' as a symlink to ##
+## this script. ##
+#####################################################################
+
+set -eu
+
+mb_escaped_arg=
+mb_escaped_args=
+mb_escaped_space=
+
+for arg ; do
+ mb_escaped_arg=\'$(printf '%s\n' "$arg" | sed -e "s/'/'\\\\''/g")\'
+ mb_escaped_arg="$mb_escaped_space$mb_escaped_arg"
+ mb_escaped_args="$mb_escaped_args$mb_escaped_arg"
+ mb_escaped_space=' '
+done
+
+eval ${SLIBTOOL:-slibtool} "$mb_escaped_args"