Commit 9dd354c6 authored by Russ Cox's avatar Russ Cox

5l, 6l, 8l: drop use of ed during build

build runs with chmod 0 /bin/ed now

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4635071
parent dfacfd64
......@@ -81,8 +81,8 @@ To build it, you need these programs installed:
<li>the standard C libraries,
<li>the parser generator Bison,
<li>GNU <tt>make</tt> (version 3.81 or later),
<li><tt>awk</tt>, and
<li>the text editor <tt>ed</tt>.
and
<li><tt>awk</tt>.
</ul>
</p>
......
......@@ -28,18 +28,18 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
ed - ../5l/5.out.h <<'!'
v/^ A/d
,s/^ A/ "/
g/ .*$/s///
,s/,*$/",/
1i
char* anames[] =
{
.
$a
};
.
w enam.c
Q
!
awk '
BEGIN {
print "char* anames[] ="
print "{"
}
/^ A/ {
name=$1
sub(/,/, "", name)
sub(/^A/, "", name)
print "\t\"" name "\","
}
END { print "};" }
' ../5l/5.out.h >enam.c
......@@ -28,18 +28,18 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
/bin/ed - ../6l/6.out.h <<'!'
v/^ A/d
,s/^ A/ "/
g/ .*$/s///
,s/,*$/",/
1i
char* anames[] =
{
.
$a
};
.
w enam.c
Q
!
awk '
BEGIN {
print "char* anames[] ="
print "{"
}
/^ A/ {
name=$1
sub(/,/, "", name)
sub(/^A/, "", name)
print "\t\"" name "\","
}
END { print "};" }
' ../6l/6.out.h >enam.c
......@@ -28,18 +28,18 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
ed - ../8l/8.out.h <<'!'
v/^ A/d
,s/^ A/ "/
g/ .*$/s///
,s/,*$/",/
1i
char* anames[] =
{
.
$a
};
.
w enam.c
Q
!
awk '
BEGIN {
print "char* anames[] ="
print "{"
}
/^ A/ {
name=$1
sub(/,/, "", name)
sub(/^A/, "", name)
print "\t\"" name "\","
}
END { print "};" }
' ../8l/8.out.h >enam.c
......@@ -55,7 +55,6 @@ PROGS="
cp
cut
echo
ed
egrep
gcc
grep
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment