mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Add script for polarssl symlink creation
This commit is contained in:
parent
5861789545
commit
8984cc8a71
1 changed files with 27 additions and 0 deletions
27
scripts/polarssl_symlinks.sh
Executable file
27
scripts/polarssl_symlinks.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Create libpolarssl.* symlinks in the given directory
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: $0 <target-directory>" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "$1" ]; then :; else
|
||||
echo "$0: target directory must exist" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if cd "$1"; then :; else
|
||||
echo "$0: cd '$1' failed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ls | grep 'libmbedtls\.' >/dev/null; then :; else
|
||||
echo "$0: libmbedtls not found in target directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for f in libmbedtls.*; do
|
||||
ln -sf $f libpolarssl${f#libmbedtls}
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue