File: sonameify

package info (click to toggle)
gecode 3.4.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 10,136 kB
  • ctags: 16,905
  • sloc: cpp: 124,581; perl: 2,004; makefile: 1,453; sh: 247
file content (17 lines) | stat: -rwxr-xr-x 426 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/bash

set -e

if [ -z "$1" -a -z "$2" ] ; then
    echo "usage: sonameify oldsoname newsoname" >&2
    exit 0
fi

sed s/$1/$2/g libgecode$1.install > libgecode$2.install
rm libgecode$1.install
sed s/$1/$2/g libgecode$1.links > libgecode$2.links
rm libgecode$1.links
sed s/$1/$2/g lintian-overrides/libgecode$1 > lintian-overrides/libgecode$2
rm lintian-overrides/libgecode$1

sed -i s/libgecode$1/libgecode$2/ control