aboutsummaryrefslogtreecommitdiffstats
path: root/perlapi.prov
blob: a82d1b97736a6a781df7aa5d1ce64219a533ed56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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