mirror of
https://github.com/golang/go
synced 2024-11-21 20:34:40 -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:
parent
dfacfd6431
commit
9dd354c63f
@ -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 @@
|
|||||||
# 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 @@
|
|||||||
# 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 @@
|
|||||||
# 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="
|
|||||||
cp
|
cp
|
||||||
cut
|
cut
|
||||||
echo
|
echo
|
||||||
ed
|
|
||||||
egrep
|
egrep
|
||||||
gcc
|
gcc
|
||||||
grep
|
grep
|
||||||
|
Loading…
Reference in New Issue
Block a user