#!/bin/sh -e ## 95_vdrdevel.dpatch by Thomas Günther <@toms-cafe.de> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Substitute vdr -> vdrdevel: ## DP: 1. in includes of all source files ## DP: 2. in contents of all files in debian directory except control, ## DP: changelog, rules, watch and copyright ## DP: 3. in names of all files in debian directory if [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi case "$1" in -patch) /usr/bin/perl -i -n -e \ 's.(#\s*include\s*)&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1;; esac exit 0