X7ROOT File Manager
Current Path:
/opt/golang/1.22.0/src
opt
/
golang
/
1.22.0
/
src
/
📁
..
📄
Make.dist
(553 B)
📄
README.vendor
(2.11 KB)
📄
all.bash
(375 B)
📄
all.bat
(543 B)
📄
all.rc
(388 B)
📁
archive
📁
arena
📄
bootstrap.bash
(2.25 KB)
📁
bufio
📄
buildall.bash
(2.07 KB)
📁
builtin
📁
bytes
📄
clean.bash
(518 B)
📄
clean.bat
(600 B)
📄
clean.rc
(380 B)
📁
cmd
📁
cmp
📄
cmp.bash
(1.46 KB)
📁
compress
📁
container
📁
context
📁
crypto
📁
database
📁
debug
📁
embed
📁
encoding
📁
errors
📁
expvar
📁
flag
📁
fmt
📁
go
📄
go.mod
(208 B)
📄
go.sum
(680 B)
📁
hash
📁
html
📁
image
📁
index
📁
internal
📁
io
📁
iter
📁
log
📄
make.bash
(7.65 KB)
📄
make.bat
(6.37 KB)
📄
make.rc
(3.76 KB)
📁
maps
📁
math
📁
mime
📁
net
📁
os
📁
path
📁
plugin
📄
race.bash
(919 B)
📄
race.bat
(1.07 KB)
📁
reflect
📁
regexp
📄
run.bash
(2.09 KB)
📄
run.bat
(859 B)
📄
run.rc
(406 B)
📁
runtime
📁
slices
📁
sort
📁
strconv
📁
strings
📁
sync
📁
syscall
📁
testdata
📁
testing
📁
text
📁
time
📁
unicode
📁
unsafe
📁
vendor
Editing: bootstrap.bash
#!/usr/bin/env bash # Copyright 2015 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # When run as (for example) # # GOOS=linux GOARCH=ppc64 bootstrap.bash # # this script cross-compiles a toolchain for that GOOS/GOARCH # combination, leaving the resulting tree in ../../go-${GOOS}-${GOARCH}-bootstrap. # That tree can be copied to a machine of the given target type # and used as $GOROOT_BOOTSTRAP to bootstrap a local build. # # Only changes that have been committed to Git (at least locally, # not necessary reviewed and submitted to master) are included in the tree. # # See also golang.org/x/build/cmd/genbootstrap, which is used # to generate bootstrap tgz files for builders. set -e if [ "$GOOS" = "" -o "$GOARCH" = "" ]; then echo "usage: GOOS=os GOARCH=arch ./bootstrap.bash [-force]" >&2 exit 2 fi forceflag="" if [ "$1" = "-force" ]; then forceflag=-force shift fi targ="../../go-${GOOS}-${GOARCH}-bootstrap" if [ -e $targ ]; then echo "$targ already exists; remove before continuing" exit 2 fi unset GOROOT src=$(cd .. && pwd) echo "#### Copying to $targ" cp -Rp "$src" "$targ" cd "$targ" echo echo "#### Cleaning $targ" chmod -R +w . rm -f .gitignore if [ -e .git ]; then git clean -f -d fi echo echo "#### Building $targ" echo cd src ./make.bash --no-banner $forceflag gohostos="$(../bin/go env GOHOSTOS)" gohostarch="$(../bin/go env GOHOSTARCH)" goos="$(../bin/go env GOOS)" goarch="$(../bin/go env GOARCH)" # NOTE: Cannot invoke go command after this point. # We're about to delete all but the cross-compiled binaries. cd .. if [ "$goos" = "$gohostos" -a "$goarch" = "$gohostarch" ]; then # cross-compile for local system. nothing to copy. # useful if you've bootstrapped yourself but want to # prepare a clean toolchain for others. true else rm -f bin/go_${goos}_${goarch}_exec mv bin/*_*/* bin rmdir bin/*_* rm -rf "pkg/${gohostos}_${gohostarch}" "pkg/tool/${gohostos}_${gohostarch}" fi rm -rf pkg/bootstrap pkg/obj .git echo ---- echo Bootstrap toolchain for "$GOOS/$GOARCH" installed in "$(pwd)". echo Building tbz. cd .. tar cf - "go-${GOOS}-${GOARCH}-bootstrap" | bzip2 -9 >"go-${GOOS}-${GOARCH}-bootstrap.tbz" ls -l "$(pwd)/go-${GOOS}-${GOARCH}-bootstrap.tbz" exit 0
Upload File
Create Folder