Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
bdeebf49
Commit
bdeebf49
authored
Aug 19, 2010
by
Christopher Wedgwood
Committed by
Russ Cox
Aug 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean.bash: fix standalone runs
R=rsc CC=golang-dev
https://golang.org/cl/1933043
parent
60c5dadb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
src/clean.bash
src/clean.bash
+6
-11
No files found.
src/clean.bash
View file @
bdeebf49
...
@@ -5,21 +5,16 @@
...
@@ -5,21 +5,16 @@
set
-e
set
-e
if
[
-z
"
$GOROOT
"
]
;
then
if
[
!
-f
env.bash
]
;
then
echo
'
$GOROOT not set'
echo
'
clean.bash must be run from $GOROOT/src'
1>&2
exit
1
exit
1
fi
fi
if
[
-z
"
$GOOS
"
]
;
then
.
./env.bash
echo
'$GOOS not set'
if
[
!
-f
Make.inc
]
;
then
exit
1
GOROOT_FINAL
=
${
GOROOT_FINAL
:-
$GOROOT
}
fi
sed
's!@@GOROOT@@!'
"
$GOROOT_FINAL
"
'!'
Make.inc.in
>
Make.inc
if
[
-z
"
$GOARCH
"
]
;
then
echo
'$GOARCH not set'
exit
1
fi
fi
GOBIN
=
"
${
GOBIN
:-
$HOME
/bin
}
"
if
[
"
$1
"
!=
"--nopkg"
]
;
then
if
[
"
$1
"
!=
"--nopkg"
]
;
then
rm
-rf
"
$GOROOT
"
/pkg/
${
GOOS
}
_
$GOARCH
rm
-rf
"
$GOROOT
"
/pkg/
${
GOOS
}
_
$GOARCH
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment