#!/bin/sh -e ## vdrdevel patch (Version 0.0.4) by Thomas Günther ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Substitute vdr -> vdrdevel and vice versa: ## DP: 1. in includes of all source files (recursively) ## 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 ## DP: Exceptions: libvdr-, svdrpsend, svdrphosts, vdrrip if [ "$*" != "-patch" -a "$*" != "-unpatch" ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi # Check if this is a vdrdevel package dh_listpackages | grep -q "^vdrdevel-" || exit 0 # Includes of all source files /usr/bin/perl -i -n -e \ "s.(#\s*include\s*)