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: ...@@ -81,8 +81,8 @@ To build it, you need these programs installed:
<li>the standard C libraries, <li>the standard C libraries,
<li>the parser generator Bison, <li>the parser generator Bison,
<li>GNU <tt>make</tt> (version 3.81 or later), <li>GNU <tt>make</tt> (version 3.81 or later),
<li><tt>awk</tt>, and and
<li>the text editor <tt>ed</tt>. <li><tt>awk</tt>.
</ul> </ul>
</p> </p>
......
...@@ -28,18 +28,18 @@ ...@@ -28,18 +28,18 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE. # THE SOFTWARE.
ed - ../5l/5.out.h <<'!' awk '
v/^ A/d BEGIN {
,s/^ A/ "/ print "char* anames[] ="
g/ .*$/s/// print "{"
,s/,*$/",/ }
1i
char* anames[] = /^ A/ {
{ name=$1
. sub(/,/, "", name)
$a sub(/^A/, "", name)
}; print "\t\"" name "\","
. }
w enam.c
Q END { print "};" }
! ' ../5l/5.out.h >enam.c
...@@ -28,18 +28,18 @@ ...@@ -28,18 +28,18 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE. # THE SOFTWARE.
/bin/ed - ../6l/6.out.h <<'!' awk '
v/^ A/d BEGIN {
,s/^ A/ "/ print "char* anames[] ="
g/ .*$/s/// print "{"
,s/,*$/",/ }
1i
char* anames[] = /^ A/ {
{ name=$1
. sub(/,/, "", name)
$a sub(/^A/, "", name)
}; print "\t\"" name "\","
. }
w enam.c
Q END { print "};" }
! ' ../6l/6.out.h >enam.c
...@@ -28,18 +28,18 @@ ...@@ -28,18 +28,18 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE. # THE SOFTWARE.
ed - ../8l/8.out.h <<'!' awk '
v/^ A/d BEGIN {
,s/^ A/ "/ print "char* anames[] ="
g/ .*$/s/// print "{"
,s/,*$/",/ }
1i
char* anames[] = /^ A/ {
{ name=$1
. sub(/,/, "", name)
$a sub(/^A/, "", name)
}; print "\t\"" name "\","
. }
w enam.c
Q END { print "};" }
! ' ../8l/8.out.h >enam.c
...@@ -55,7 +55,6 @@ PROGS=" ...@@ -55,7 +55,6 @@ PROGS="
cp cp
cut cut
echo echo
ed
egrep egrep
gcc gcc
grep 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