blob: fa360e53c1f1f6182b1b1567daf103fb2a509e59 (
plain)
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
|
--- ucspi-unix-0.36/Makefile.orig 2003-12-26 18:50:34.000000000 -0500
+++ ucspi-unix-0.36/Makefile 2003-12-26 18:50:56.000000000 -0500
@@ -18,18 +18,18 @@
( echo '#!/bin/sh'; \
echo 'source=$$1; shift'; \
echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
- echo exec `head -1 conf-cc` '-I. -o $${base}.o -c $$source $${1+"$$@"}'; \
+ echo exec `head -n 1 conf-cc` '-I. -o $${base}.o -c $$source $${1+"$$@"}'; \
) >compile
chmod 755 compile
conf_bin.c: conf-bin
- head -1 conf-bin | \
+ head -n 1 conf-bin | \
sed -e 's/"/\\"/g' \
-e 's/^/const char conf_bin[] = "/' \
-e 's/$$/";/' >conf_bin.c
conf_man.c: conf-man
- head -1 conf-man | \
+ head -n 1 conf-man | \
sed -e 's/"/\\"/g' \
-e 's/^/const char conf_man[] = "/' \
-e 's/$$/";/' >conf_man.c
@@ -55,7 +55,7 @@
load: conf-ld
( echo '#!/bin/sh';\
echo 'main="$$1"; shift';\
- echo exec `head -1 conf-ld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lsysdeps;\
+ echo exec `head -n 1 conf-ld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lsysdeps;\
) >load
chmod 755 load
|