| 1 |
#! /bin/sh -e
|
| 2 |
## 07_noadvertising.dpatch by <ametzler@downhill.univie.ac.at>
|
| 3 |
##
|
| 4 |
## All lines beginning with `## DP:' are a description of the patch.
|
| 5 |
## DP: Remove advertising for cdrecord-ProDVD.
|
| 6 |
|
| 7 |
if [ $# -ne 1 ]; then
|
| 8 |
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
|
| 9 |
exit 1
|
| 10 |
fi
|
| 11 |
case "$1" in
|
| 12 |
-patch) patch -f --no-backup-if-mismatch -p1 < $0;;
|
| 13 |
-unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
|
| 14 |
*)
|
| 15 |
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
|
| 16 |
exit 1;;
|
| 17 |
esac
|
| 18 |
|
| 19 |
exit 0
|
| 20 |
|
| 21 |
@DPATCH@
|
| 22 |
diff -urNad /tmp/cdrtools-2.01/cdrecord/cdrecord.c cdrtools-2.01/cdrecord/cdrecord.c
|
| 23 |
--- /tmp/cdrtools-2.01/cdrecord/cdrecord.c Wed Jan 7 16:33:18 2004
|
| 24 |
+++ cdrtools-2.01/cdrecord/cdrecord.c Wed Jan 7 16:35:33 2004
|
| 25 |
@@ -627,9 +627,7 @@
|
| 26 |
errmsgno(EX_BAD,
|
| 27 |
"This version of cdrecord does not include DVD-R/DVD-RW support code.\n");
|
| 28 |
errmsgno(EX_BAD,
|
| 29 |
- "If you need DVD-R/DVD-RW support, ask the Author for cdrecord-ProDVD.\n");
|
| 30 |
- errmsgno(EX_BAD,
|
| 31 |
- "Free test versions and free keys for personal use are at ftp://ftp.berlios.de/pub/cdrecord/ProDVD/\n");
|
| 32 |
+ "See /usr/share/doc/cdrecord/README.DVD.Debian for details on DVD support.\n");
|
| 33 |
}
|
| 34 |
/*
|
| 35 |
* Only exit if this is not the ProDVD test binary.
|