diff options
Diffstat (limited to 'perlapi.prov')
-rwxr-xr-x | perlapi.prov | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/perlapi.prov b/perlapi.prov new file mode 100755 index 0000000..a82d1b9 --- /dev/null +++ b/perlapi.prov @@ -0,0 +1,14 @@ +#!/bin/sh +# --- If libperl.so is found in buildroot, we provide perlapi-<version> +while read instfile ; do + perlpath=$instfile + version=${instfile/CORE*/} + version=$(echo $version| sed -e 's!/$!!' -e 's!/[^/]*$!!' -e 's!.*/!!') + minor=$(echo $version| sed -e 's!^.*\.!!') + major=$(echo $version| sed -e 's!\.[0-9]*$!!') + if [ -n "$version" ] && [ -n "$minor" ]; then + for i in $(seq 0 $minor); do echo "perlapi-$major.$i"; done + fi +done + + |