File: shlibs-string.sh

package info (click to toggle)
libmp3splt 0.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,288 kB
  • ctags: 818
  • sloc: ansic: 14,675; sh: 9,225; makefile: 51
file content (12 lines) | stat: -rw-r--r-- 474 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

cd $(readlink -f $(dirname $(readlink -f $0))/..)
if [ -n "$1" ]; then
    APPEND="$1"
else
    APPEND="0"
fi
UPSTREAM_VERSION=$(dpkg-parsechangelog | awk '/^Version:/{sub("-.+$", "", $2); print $2}')
# TODO: make this work without requiring gawk
NEXT_UPSTREAM=$(echo ${UPSTREAM_VERSION} | gawk '{split($0, a, "."); sub(a[length(a)] "$",  a[length(a)] + 1, $0); print}')
echo "libmp3splt$APPEND (>= ${UPSTREAM_VERSION}), libmp3splt$APPEND (<< ${NEXT_UPSTREAM}~)"