summaryrefslogtreecommitdiff
blob: 7d8eecdefe192eb0dfd786d2a23e9ec359fbb9e8 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
diff -uNr lilypond-1.8.1/autogen.sh lilypond-1.8.1-coreutils-compat/autogen.sh
--- lilypond-1.8.1/autogen.sh	2002-12-24 14:57:36.000000000 -0700
+++ lilypond-1.8.1-coreutils-compat/autogen.sh	2003-08-22 21:32:25.000000000 -0600
@@ -23,7 +23,7 @@
 # If you have such a setup, invoke this script as:
 #   autoconf=autoconf2.50 ./autogen.sh
 for i in autoconf2.50 autoconf-2.50 autoconf  false; do
-  version=`$i --version 2>/dev/null | head -1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
+  version=`$i --version 2>/dev/null | head -n 1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
   if test "0$version" -ge 250; then
     autoconf=$i
     break
diff -uNr lilypond-1.8.1/buildscripts/mf-to-xpms.sh lilypond-1.8.1-coreutils-compat/buildscripts/mf-to-xpms.sh
--- lilypond-1.8.1/buildscripts/mf-to-xpms.sh	1999-10-04 03:11:14.000000000 -0600
+++ lilypond-1.8.1-coreutils-compat/buildscripts/mf-to-xpms.sh	2003-08-22 21:32:34.000000000 -0600
@@ -21,7 +21,7 @@
 	gftopk out/$font.${RESOLUTION}gf out/$font.${RESOLUTION}pk
 fi
 
-# num=`grep "^C *[0-9]*;" $afm | tail -1 | sed "s!^C *\([^;]*\).*!\\1!"`
+# num=`grep "^C *[0-9]*;" $afm | tail -n 1 | sed "s!^C *\([^;]*\).*!\\1!"`
 # num=66
 # tex=out/$font.tex
 # cat > $tex <<EOF
diff -uNr lilypond-1.8.1/stepmake/aclocal.m4 lilypond-1.8.1-coreutils-compat/stepmake/aclocal.m4
--- lilypond-1.8.1/stepmake/aclocal.m4	2003-07-17 13:28:47.000000000 -0600
+++ lilypond-1.8.1-coreutils-compat/stepmake/aclocal.m4	2003-08-22 21:32:25.000000000 -0600
@@ -11,13 +11,13 @@
     ## command -v doesn't work in zsh
     ## command -v "$1" 2>&1
     ## this test should work in ash, bash, pdksh (ksh), zsh
-    type -p "$1" 2>/dev/null | tail -1 | awk '{print $NF}'
+    type -p "$1" 2>/dev/null | tail -n 1 | awk '{print $NF}'
 ])
 
 
 # Get version string from executable ($1)
 AC_DEFUN(STEPMAKE_GET_VERSION, [
-    ## "$1" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
+    ## "$1" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
     ##
     ## ARG.
     ## Workaround for broken Debian gcc version string:
@@ -28,7 +28,7 @@
     ## Assume, and hunt for, dotted version multiplet.
 
     changequote(<<, >>)dnl
-    ("$1" --version || "$1" -V) 2>&1 | grep '[0-9]\.[0-9]' | head -1 | \
+    ("$1" --version || "$1" -V) 2>&1 | grep '[0-9]\.[0-9]' | head -n 1 | \
 	sed -e 's/.*[^-.0-9]\([0-9][0-9]*\.[0-9][.0-9]*\).*/\1/'
     changequote([, ])dnl
 ])
diff -uNr lilypond-1.8.1/stepmake/autogen.sh lilypond-1.8.1-coreutils-compat/stepmake/autogen.sh
--- lilypond-1.8.1/stepmake/autogen.sh	2002-12-15 11:34:47.000000000 -0700
+++ lilypond-1.8.1-coreutils-compat/stepmake/autogen.sh	2003-08-22 21:32:52.000000000 -0600
@@ -23,7 +23,7 @@
 # If you have such a setup, invoke this script as:
 #   autoconf=autoconf2.50 ./autogen.sh
 for i in autoconf2.50 autoconf-2.50 autoconf  false; do
-  version=`$i --version 2>/dev/null | head -1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
+  version=`$i --version 2>/dev/null | head -n 1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
   if test "0$version" -ge 250; then
     autoconf=$i
     break
diff -uNr lilypond-1.8.1/stepmake/bin/stepmakeise.sh lilypond-1.8.1-coreutils-compat/stepmake/bin/stepmakeise.sh
--- lilypond-1.8.1/stepmake/bin/stepmakeise.sh	1998-07-08 02:04:40.000000000 -0600
+++ lilypond-1.8.1-coreutils-compat/stepmake/bin/stepmakeise.sh	2003-08-22 21:32:42.000000000 -0600
@@ -54,7 +54,7 @@
 		echo "$name: huh 2?"
 		exit 1
 	fi
-	LATEST=`cd $reldir; ls -t1 stepmake-*.tar.gz | head -1 | sed 's!stepmake-!!' | sed 's!.tar.gz!!'`
+	LATEST=`cd $reldir; ls -t1 stepmake-*.tar.gz | head -n 1 | sed 's!stepmake-!!' | sed 's!.tar.gz!!'`
 	# urg
 	latest=`echo $LATEST | sed 's/\.[a-zA-Z][a-zA-Z]*[0-9]*$//'`
 	latest_val=`value $latest`
diff -uNr lilypond-1.8.1/stepmake/stepmake/automatically-generated.sub.make lilypond-1.8.1-coreutils-compat/stepmake/stepmake/automatically-generated.sub.make
--- lilypond-1.8.1/stepmake/stepmake/automatically-generated.sub.make	2002-05-17 06:09:10.000000000 -0600
+++ lilypond-1.8.1-coreutils-compat/stepmake/stepmake/automatically-generated.sub.make	2003-08-22 21:35:03.000000000 -0600
@@ -3,7 +3,7 @@
 
 default:
 	-chmod +w $(OUTFILE)
-	head -1 $(INFILE) > $(OUTFILE)
+	head -n 1 $(INFILE) > $(OUTFILE)
 	echo "$(LINECOMMENT) WARNING WARNING WARNING" >> $(OUTFILE)
 	echo "$(LINECOMMENT) do not edit! this is $(OUTFILE), generated from $(INFILE)" >> $(OUTFILE)
 	cat $(INFILE) >> $(OUTFILE)