Code

b97716a110d213dbea2e79eed3e01183bdb94c59
[pkg-mlmmj.git] / debian / patches / 05_fix_displayed_full_paths.dpatch
1 #! /bin/sh -e
2 ## 05_fix_displayed_full_paths.dpatch by  <boll@andariel>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
7 if [ $# -lt 1 ]; then
8     echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
9     exit 1
10 fi
12 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
13 patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
15 case "$1" in
16     -patch) patch -p1 ${patch_opts} < $0;;
17     -unpatch) patch -R -p1 ${patch_opts} < $0;;
18     *)
19         echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
20         exit 1;;
21 esac
23 exit 0
25 @DPATCH@
26 diff -urNad /home/boll/mlmmj/mlmmj-1.0.0-RELEASE/include/mlmmj.h mlmmj-1.0.0-RELEASE/include/mlmmj.h
27 --- /home/boll/mlmmj/mlmmj-1.0.0-RELEASE/include/mlmmj.h        2004-09-07 11:49:10.000000000 +0000
28 +++ mlmmj-1.0.0-RELEASE/include/mlmmj.h 2004-10-03 08:29:27.000000000 +0000
29 @@ -70,7 +70,7 @@
30  #define CHECKFULLPATH(name) if(strchr(name, '/') == NULL) { \
31                         fprintf(stderr, "All mlmmj binaries have to " \
32                                         "be invoked with full path,\n" \
33 -                                       "e.g. /usr/local/bin/%s\n", name); \
34 +                                       "e.g. /usr/bin/%s\n", name); \
35                         exit(EXIT_FAILURE); \
36                         };
37