1
0
mirror of https://github.com/golang/go synced 2024-11-21 09:24:42 -07:00

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
This commit is contained in:
Russ Cox 2011-06-27 12:03:19 -04:00
parent dfacfd6431
commit 9dd354c63f
5 changed files with 47 additions and 48 deletions

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -55,7 +55,6 @@ PROGS="
cp
cut
echo
ed
egrep
gcc
grep