2
## 20_main_argc.dpatch by Denis Barbier <barbier@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Description: Fix handling of program arguments.
6
## DP: Date: 2004-08-02
9
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
13
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
14
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
17
-patch) patch -p1 ${patch_opts} < $0;;
18
-unpatch) patch -R -p1 ${patch_opts} < $0;;
20
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
27
diff -urNad /opt/tmp/kbd-1.12/src/getunimap.c kbd-1.12/src/getunimap.c
28
--- /opt/tmp/kbd-1.12/src/getunimap.c 2004-08-01 20:33:38.000000000 +0200
29
+++ kbd-1.12/src/getunimap.c 2004-08-02 22:45:30.000000000 +0200
39
diff -urNad /opt/tmp/kbd-1.12/src/loadunimap.c kbd-1.12/src/loadunimap.c
40
--- /opt/tmp/kbd-1.12/src/loadunimap.c 2004-08-02 22:45:06.000000000 +0200
41
+++ kbd-1.12/src/loadunimap.c 2004-08-02 22:46:39.000000000 +0200
46
- if (argc > 2 || (argc == 1 && !outfnam))
47
+ if (argc > optind+1 || (argc == optind && !outfnam))
53
saveunicodemap(fd, outfnam);
60
+ if (argc == optind+1)
61
infnam = argv[optind];
62
loadunicodemap(fd, infnam);
64
diff -urNad /opt/tmp/kbd-1.12/src/showconsolefont.c kbd-1.12/src/showconsolefont.c
65
--- /opt/tmp/kbd-1.12/src/showconsolefont.c 2004-08-02 22:44:30.000000000 +0200
66
+++ kbd-1.12/src/showconsolefont.c 2004-08-02 22:47:07.000000000 +0200