Dash:
[t2.git] / package / network / ucspi-unix / head_n.patch
blobf7ef159ed18a77a3efc320e80e489e1204cc570c
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../ucspi-unix/head_n.patch
5 # Copyright (C) 2004 - 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 ---
16 --- ./Makefile.orig 2004-11-24 23:21:55.000000000 -0300
17 +++ ./Makefile 2004-11-24 23:22:33.000000000 -0300
18 @@ -18,18 +18,18 @@
19 ( echo '#!/bin/sh'; \
20 echo 'source=$$1; shift'; \
21 echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
22 - echo exec `head -1 conf-cc` '-I. -o $${base}.o -c $$source $${1+"$$@"}'; \
23 + echo exec `head -n 1 conf-cc` '-I. -o $${base}.o -c $$source $${1+"$$@"}'; \
24 ) >compile
25 chmod 755 compile
27 conf_bin.c: conf-bin
28 - head -1 conf-bin | \
29 + head -n 1 conf-bin | \
30 sed -e 's/"/\\"/g' \
31 -e 's/^/const char conf_bin[] = "/' \
32 -e 's/$$/";/' >conf_bin.c
34 conf_man.c: conf-man
35 - head -1 conf-man | \
36 + head -n 1 conf-man | \
37 sed -e 's/"/\\"/g' \
38 -e 's/^/const char conf_man[] = "/' \
39 -e 's/$$/";/' >conf_man.c
40 @@ -55,7 +55,7 @@
41 load: conf-ld
42 ( echo '#!/bin/sh';\
43 echo 'main="$$1"; shift';\
44 - echo exec `head -1 conf-ld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lsysdeps;\
45 + echo exec `head -n 1 conf-ld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lsysdeps;\
46 ) >load
47 chmod 755 load