f57e1dd0d06c7495ce9da73b010b200692ae6531
1 #! /bin/sh -e
2 ## 05_fix_displayed_full_paths.dpatch by <boll@andariel>
3 ##
4 ## DP: Adapt the path name of binaries in an error message to the paths as
5 ## DP: used in the Debian package.
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 };