aboutsummaryrefslogtreecommitdiffstats
path: root/debian/update-helper-symbols.sh
blob: 1972ad3c3f741026c1da48a470a544e339dca8de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
if [ "$#" -lt 2 ]; then
    echo "Need at least two arguments"
    echo "Usage: $0 <newversion> <symbol-files>..."
fi

newv=${1}

for symbolf in ${@:2}
do
    echo "modifying ${symbolf}"
    perl -pi -e "s/\.so\.[0-9.]*/.so.${newv}/g" "${symbolf}"
    perl -pi -e "s/[0-9.]* #MINVER#/${newv} #MINVER#/g" "${symbolf}"
done