mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 08:07:24 +04:00
Jump from the 3.x series to 5.x; the SONAME moves from libyang.so.3 to libyang.so.5, an ABI break for anything linked against the old package. In-tree consumers were moved to libyang-legacy in the previous commit and stay there until their own bumps later in this series. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
22 lines
325 B
Bash
Executable File
22 lines
325 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case "$1" in
|
|
libyang)
|
|
[ -e /usr/lib/libyang.so ] || {
|
|
echo "libyang.so not found" >&2
|
|
exit 1
|
|
}
|
|
[ -e /usr/lib/libyang.so.5 ] || {
|
|
echo "libyang.so.5 not found" >&2
|
|
exit 1
|
|
}
|
|
;;
|
|
yanglint)
|
|
yanglint --version | grep -F "$2"
|
|
;;
|
|
*)
|
|
echo "Unsupported test target: $1" >&2
|
|
exit 1
|
|
;;
|
|
esac
|