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
49ac4acd
Commit
49ac4acd
authored
Sep 04, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts: able to set XC_ARCH/OS manually
parent
dabbcd45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
scripts/build.sh
scripts/build.sh
+6
-6
No files found.
scripts/build.sh
View file @
49ac4acd
...
...
@@ -15,6 +15,12 @@ cd $DIR
GIT_COMMIT
=
$(
git rev-parse HEAD
)
GIT_DIRTY
=
$(
test
-n
"
`
git status
--porcelain
`
"
&&
echo
"+CHANGES"
||
true
)
# If its dev mode, only build for ourself
if
[
"
${
TF_DEV
}
x"
!=
"x"
]
;
then
XC_OS
=
${
XC_OS
:-
$(
go
env
GOOS
)
}
XC_ARCH
=
${
XC_ARCH
:-
$(
go
env
GOARCH
)
}
fi
# Determine the arch/os combos we're building for
XC_ARCH
=
${
XC_ARCH
:-
"386 amd64 arm"
}
XC_OS
=
${
XC_OS
:-
linux
darwin windows freebsd openbsd
}
...
...
@@ -29,12 +35,6 @@ rm -f bin/*
rm
-rf
pkg/
*
mkdir
-p
bin/
# If its dev mode, only build for ourself
if
[
"
${
TF_DEV
}
x"
!=
"x"
]
;
then
XC_OS
=
$(
go
env
GOOS
)
XC_ARCH
=
$(
go
env
GOARCH
)
fi
# Build!
echo
"==> Building..."
gox
\
...
...
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