blob: a14ff3280bfbb639ff21ab39a2eec9b64498c5a8 [file] [log] [blame] [raw]
Manuel Pégourié-Gonnard8984cc82015-01-28 11:09:25 +01001#!/bin/sh
2
3# Create libpolarssl.* symlinks in the given directory
4
5if [ $# -ne 1 ]; then
6 echo "Usage: $0 <target-directory>" >&2
7 exit 1
8fi
9
10if [ -d "$1" ]; then :; else
11 echo "$0: target directory must exist" >&2
12 exit 1
13fi
14
15if cd "$1"; then :; else
16 echo "$0: cd '$1' failed" >&2
17 exit 1
18fi
19
20if ls | grep 'libmbedtls\.' >/dev/null; then :; else
21 echo "$0: libmbedtls not found in target directory" >&2
22 exit 1
23fi
24
25for f in libmbedtls.*; do
26 ln -sf $f libpolarssl${f#libmbedtls}
27done