1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
#! /bin/sh -e
## 03_newpatch.dpatch by Manuel Estrada Sainz <ranty@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Don't use sed to remove duplicates in configure, it segfaults.
if [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch) patch -f --no-backup-if-mismatch -p1 < $0;;
-unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1;;
esac
exit 0
diff -urNad 00.lirc.tmp/configure 00.lirc/configure
--- 00.lirc.tmp/configure 2003-03-08 19:22:24.000000000 +0100
+++ 00.lirc/configure 2003-03-08 19:26:06.000000000 +0100
@@ -9699,10 +9699,18 @@
done
#remove duplicates
#hw_module=`echo ${hw_module}| tr ' ' '\n' | sort -u | tr '\n' ' '`
- hw_module=`echo ${hw_module}| sed \
- -e':again' \
- -e's/\(.*\)\(\<.*\) \(.*\) \2\(.*\)$/\1\2 \3\4/' \
- -e'tagain'`
+ #hw_module=`echo ${hw_module}| sed \
+ # -e':again' \
+# -e's/\(.*\)\(\<.*\) \(.*\) \2\(.*\)$/\1\2 \3\4/' \
+# -e'tagain'`
+
+ space_to_newline()
+ { for token in $*; do echo $token; done; }
+ newline_to_space()
+ { echo $*; }
+
+ hw_module=$(newline_to_space $(space_to_newline ${hw_module}| sort -u))
+
fi
if test "$driver" = "irman"; then
|