Dash:
[t2.git] / package / network / djbdns / head_n.patch
blob0bf5dad7d7db617f8bcd7d9c8093d4b60db02f56
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../djbdns/head_n.patch
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
16 --- ./Makefile.orig 2004-11-23 00:29:39.000000000 -0300
17 +++ ./Makefile 2004-11-23 00:31:09.000000000 -0300
18 @@ -31,7 +31,7 @@
20 auto_home.c: \
21 auto-str conf-home
22 - ./auto-str auto_home `head -1 conf-home` > auto_home.c
23 + ./auto-str auto_home `head -n 1 conf-home` > auto_home.c
25 auto_home.o: \
26 compile auto_home.c
27 @@ -205,14 +205,14 @@
28 choose: \
29 warn-auto.sh choose.sh conf-home
30 cat warn-auto.sh choose.sh \
31 - | sed s}HOME}"`head -1 conf-home`"}g \
32 + | sed s}HOME}"`head -n 1 conf-home`"}g \
33 > choose
34 chmod 755 choose
36 compile: \
37 warn-auto.sh conf-cc
38 ( cat warn-auto.sh; \
39 - echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \
40 + echo exec "`head -n 1 conf-cc`" '-c $${1+"$$@"}' \
41 ) > compile
42 chmod 755 compile
44 @@ -445,7 +445,7 @@
45 dnstracesort: \
46 warn-auto.sh dnstracesort.sh conf-home
47 cat warn-auto.sh dnstracesort.sh \
48 - | sed s}HOME}"`head -1 conf-home`"}g \
49 + | sed s}HOME}"`head -n 1 conf-home`"}g \
50 > dnstracesort
51 chmod 755 dnstracesort
53 @@ -566,7 +566,7 @@
54 warn-auto.sh conf-ld
55 ( cat warn-auto.sh; \
56 echo 'main="$$1"; shift'; \
57 - echo exec "`head -1 conf-ld`" \
58 + echo exec "`head -n 1 conf-ld`" \
59 '-o "$$main" "$$main".o $${1+"$$@"}' \
60 ) > load
61 chmod 755 load
62 @@ -754,7 +754,7 @@
63 rts: \
64 warn-auto.sh rts.sh conf-home
65 cat warn-auto.sh rts.sh \
66 - | sed s}HOME}"`head -1 conf-home`"}g \
67 + | sed s}HOME}"`head -n 1 conf-home`"}g \
68 > rts
69 chmod 755 rts
71 @@ -897,8 +897,8 @@
72 systype: \
73 find-systype.sh conf-cc conf-ld trycpp.c x86cpuid.c
74 ( cat warn-auto.sh; \
75 - echo CC=\'`head -1 conf-cc`\'; \
76 - echo LD=\'`head -1 conf-ld`\'; \
77 + echo CC=\'`head -n 1 conf-cc`\'; \
78 + echo LD=\'`head -n 1 conf-ld`\'; \
79 cat find-systype.sh; \
80 ) | sh > systype