updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / vdr-undelete / 90_APIVERSION.dpatch
blob2a60f84f5c7dd9c95beea1d0b1140d2119075b04
1 #! /bin/sh -e
2 ## 90_APIVERSION.dpatch by Thomas Günther <tom@toms-cafe.de>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Support for the APIVERSION define as introduced in VDR-1.3.47.
7 case "$1" in
8 -patch)
9 sed -i -e s/VDRVERSION/APIVERSION/g Makefile
11 -unpatch)
12 sed -i -e s/APIVERSION/VDRVERSION/g Makefile
15 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
16 exit 1
18 esac
20 exit 0