Dash:
[t2.git] / package / mail / mdmh / head_-n.patch
blob92f4e28aa6ba46182264f8dcf305035e3c8390ed
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../mdmh/head_-n.patch
5 # Copyright (C) 2005 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 ---
17 --- ./Makefile.orig 2005-12-16 14:43:56.000000000 -0300
18 +++ ./Makefile 2005-12-16 14:44:18.000000000 -0300
19 @@ -11,8 +11,8 @@
20 mdbiff: \
21 warn-auto.sh mdbiff.sh conf-home conf-play
22 cat warn-auto.sh mdbiff.sh \
23 - | sed s}HOME}"`head -1 conf-home`"}g \
24 - | sed s}PLAY}"`head -1 conf-play`"}g \
25 + | sed s}HOME}"`head -n 1 conf-home`"}g \
26 + | sed s}PLAY}"`head -n 1 conf-play`"}g \
27 > mdbiff
28 chmod 755 mdbiff
30 @@ -20,7 +20,7 @@
31 warn-auto.sh conf-ld
32 ( cat warn-auto.sh; \
33 echo 'main="$$1"; shift'; \
34 - echo exec "`head -1 conf-ld`" \
35 + echo exec "`head -n 1 conf-ld`" \
36 '-o "$$main" "$$main".o $${1+"$$@"}' \
37 ) > load
38 chmod 755 load
39 @@ -34,7 +34,7 @@
40 compile: \
41 warn-auto.sh conf-cc
42 ( cat warn-auto.sh; \
43 - echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \
44 + echo exec "`head -n 1 conf-cc`" '-c $${1+"$$@"}' \
45 ) > compile
46 chmod 755 compile
48 @@ -57,7 +57,7 @@
50 auto_home.c: \
51 auto-str conf-home
52 - ./auto-str auto_home `head -1 conf-home` > auto_home.c
53 + ./auto-str auto_home `head -n 1 conf-home` > auto_home.c
55 auto-str: \
56 load auto-str.o buffer.a error.a str.a
57 @@ -91,8 +91,8 @@
58 systype: \
59 find-systype.sh conf-cc conf-ld trycpp.c x86cpuid.c
60 ( cat warn-auto.sh; \
61 - echo CC=\'`head -1 conf-cc`\'; \
62 - echo LD=\'`head -1 conf-ld`\'; \
63 + echo CC=\'`head -n 1 conf-cc`\'; \
64 + echo LD=\'`head -n 1 conf-ld`\'; \
65 cat find-systype.sh; \
66 ) | sh > systype