File: fix-version

package info (click to toggle)
node-react-hot-loader 4.13.1%2B~cs12.12.4-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,260 kB
  • sloc: javascript: 12,320; sh: 58; makefile: 17
file content (12 lines) | stat: -rwxr-xr-x 228 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

CMP=$1
DEBVERSION=$2

CMPVERSION=`pkgjs-pjson $CMP version`

if dpkg --compare-versions $CMPVERSION-1 gt "4.13.1+~cs12.12.4-1"; then
	echo $CMPVERSION~$DEBVERSION
else
	echo 4.13.1+really-$CMPVERSION~$DEBVERSION
fi