+++ /dev/null
-#!/bin/sh
-
-SUPPORT=$(cat debian/linux_compat)
-MAJOR=$(echo $SUPPORT|cut -d'.' -f1)
-MINOR=$(echo $SUPPORT|cut -d'.' -f2)
-NEXT=$((MINOR+1))
-
-echo "${MAJOR}.${NEXT}"
LSB_DISTRIBUTOR := $(shell lsb_release -is)
NAME := $(shell awk '$$1 == "Name:" { print $$2; }' META)
+LINUX_NEXT := $(shell awk -F. '{print $$1 "." $$2+1}' debian/linux_compat)
DKMSFILES := module include config zfs.release.in autogen.sh META AUTHORS \
DISCLAIMER COPYRIGHT OPENSOLARIS.LICENSE README.markdown
dh $@ --with autoreconf,dkms,python3,systemd --parallel
override_dh_auto_configure:
- sed "s/@LINUX_COMPAT@/linux-libc-dev \(<< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
+ sed "s/@LINUX_COMPAT@/linux-libc-dev \(<< $(LINUX_NEXT)\)/" debian/control.in > debian/control
ifeq ($(BUILD_UDEB), true)
cat debian/control.udeb.in >> debian/control
endif
dh_auto_clean
debconf-updatepo
@if test -e META.orig; then mv META.orig META; fi
- sed "s/@LINUX_COMPAT@/linux-libc-dev \(<< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
+ sed "s/@LINUX_COMPAT@/linux-libc-dev \(<< $(LINUX_NEXT)\)/" debian/control.in > debian/control
ifeq ($(BUILD_UDEB), true)
cat debian/control.udeb.in >> debian/control
endif