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: Changes path of a printf in mlmmj.h to be /usr/bin and
6 ## DP: not /usr/local/bin when printing usages.
8 if [ $# -lt 1 ]; then
9 echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
10 exit 1
11 fi
13 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
14 patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
16 case "$1" in
17 -patch) patch -p1 ${patch_opts} < $0;;
18 -unpatch) patch -R -p1 ${patch_opts} < $0;;
19 *)
20 echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
21 exit 1;;
22 esac
24 exit 0
26 @DPATCH@
27 diff -urNad /home/boll/mlmmj/mlmmj-1.0.0-RELEASE/include/mlmmj.h mlmmj-1.0.0-RELEASE/include/mlmmj.h
28 --- /home/boll/mlmmj/mlmmj-1.0.0-RELEASE/include/mlmmj.h 2004-09-07 11:49:10.000000000 +0000
29 +++ mlmmj-1.0.0-RELEASE/include/mlmmj.h 2004-10-03 08:29:27.000000000 +0000
30 @@ -70,7 +70,7 @@
31 #define CHECKFULLPATH(name) if(strchr(name, '/') == NULL) { \
32 fprintf(stderr, "All mlmmj binaries have to " \
33 "be invoked with full path,\n" \
34 - "e.g. /usr/local/bin/%s\n", name); \
35 + "e.g. /usr/bin/%s\n", name); \
36 exit(EXIT_FAILURE); \
37 };