Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
a23eb751
Commit
a23eb751
authored
Sep 07, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts: copy packer- prefixed bins properly [GH-1467]
parent
db90c161
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
scripts/build.sh
scripts/build.sh
+13
-0
No files found.
scripts/build.sh
View file @
a23eb751
...
...
@@ -52,10 +52,23 @@ for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do
set
-e
done
# Move all the compiled things to the $GOPATH/bin
GOPATH
=
${
GOPATH
:-
$(
go
env
GOPATH
)
}
case
$(
uname
)
in
CYGWIN
*
)
GOPATH
=
"
$(
cygpath
$GOPATH
)
"
;;
esac
OLDIFS
=
$IFS
IFS
=
:
MAIN_GOPATH
=(
$GOPATH
)
IFS
=
$OLDIFS
# Copy our OS/Arch to the bin/ directory
echo
"==> Copying binaries for this platform..."
DEV_PLATFORM
=
"./pkg/
$(
go
env
GOOS
)
_
$(
go
env
GOARCH
)
"
for
F
in
$(
find
${
DEV_PLATFORM
}
-mindepth
1
-maxdepth
1
-type
f
)
;
do
cp
${
F
}
bin/
cp
${
F
}
${
MAIN_GOPATH
}
/bin/
done
if
[
"
${
TF_DEV
}
x"
=
"x"
]
;
then
...
...
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