Browse Source

fake:


			
			
				rocklinux
			
			
		
fake 20 years ago
parent
commit
0511a1513c
1 changed files with 33 additions and 0 deletions
  1. +33
    -0
      package/mnemoc/ucspi-unix/head-useage.patch

+ 33
- 0
package/mnemoc/ucspi-unix/head-useage.patch

@ -0,0 +1,33 @@
--- ./Makefile.orig 2004-09-07 05:16:38.584125576 +0200
+++ ./Makefile 2004-09-07 05:17:05.934967616 +0200
@@ -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

Loading…
Cancel
Save