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
df6de5be
Commit
df6de5be
authored
Jun 19, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move scripts into the scripts/ folder
parent
b279537b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
Makefile
Makefile
+1
-1
scripts/build.sh
scripts/build.sh
+7
-0
scripts/dist.sh
scripts/dist.sh
+5
-4
No files found.
Makefile
View file @
df6de5be
...
@@ -8,7 +8,7 @@ all:
...
@@ -8,7 +8,7 @@ all:
@
echo
"
$(OK_COLOR)
==> Installing dependencies
$(NO_COLOR)
"
@
echo
"
$(OK_COLOR)
==> Installing dependencies
$(NO_COLOR)
"
@
go get
-d
-v
./...
@
go get
-d
-v
./...
@
echo
"
$(OK_COLOR)
==> Building
$(NO_COLOR)
"
@
echo
"
$(OK_COLOR)
==> Building
$(NO_COLOR)
"
@
./build.sh
@
./
scripts/
build.sh
format
:
format
:
go
fmt
./...
go
fmt
./...
...
...
build.sh
→
scripts/
build.sh
View file @
df6de5be
...
@@ -6,6 +6,13 @@ OK_COLOR="\x1b[32;01m"
...
@@ -6,6 +6,13 @@ OK_COLOR="\x1b[32;01m"
ERROR_COLOR
=
"
\x
1b[31;01m"
ERROR_COLOR
=
"
\x
1b[31;01m"
WARN_COLOR
=
"
\x
1b[33;01m"
WARN_COLOR
=
"
\x
1b[33;01m"
# Get the parent directory of where this script is.
SOURCE
=
"
${
BASH_SOURCE
[0]
}
"
while
[
-h
"
$SOURCE
"
]
;
do
SOURCE
=
"
$(
readlink
"
$SOURCE
"
)
"
;
done
DIR
=
"
$(
cd
-P
"
$(
dirname
"
$SOURCE
"
)
/.."
&&
pwd
)
"
# Change into that directory
cd
$DIR
# Compile the main Packer app
# Compile the main Packer app
echo
"
${
OK_COLOR
}
--> Compiling Packer
${
NO_COLOR
}
"
echo
"
${
OK_COLOR
}
--> Compiling Packer
${
NO_COLOR
}
"
...
...
dist.sh
→
scripts/
dist.sh
100755 → 100644
View file @
df6de5be
#!/bin/bash
#!/bin/bash
set
-e
set
-e
# Get the directory where this script is. This will also resolve
# Get the parent directory of where this script is.
# any symlinks in the directory/script, so it will be the fully
# resolved path.
SOURCE
=
"
${
BASH_SOURCE
[0]
}
"
SOURCE
=
"
${
BASH_SOURCE
[0]
}
"
while
[
-h
"
$SOURCE
"
]
;
do
SOURCE
=
"
$(
readlink
"
$SOURCE
"
)
"
;
done
while
[
-h
"
$SOURCE
"
]
;
do
SOURCE
=
"
$(
readlink
"
$SOURCE
"
)
"
;
done
DIR
=
"
$(
cd
-P
"
$(
dirname
"
$SOURCE
"
)
"
&&
pwd
)
"
DIR
=
"
$(
cd
-P
"
$(
dirname
"
$SOURCE
"
)
/.."
&&
pwd
)
"
# Change into that dir because we expect that
cd
$DIR
# Determine the version that we're building based on the contents
# Determine the version that we're building based on the contents
# of packer/version.go.
# of packer/version.go.
...
...
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