Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
965de909
Commit
965de909
authored
Mar 03, 2016
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix update codecgen
parent
d2ee8f7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
update-codecgen.sh
hack/update-codecgen.sh
+10
-1
No files found.
hack/update-codecgen.sh
View file @
965de909
...
@@ -32,12 +32,21 @@ generated_files=($(
...
@@ -32,12 +32,21 @@ generated_files=($(
-o
-wholename
'./target'
\
-o
-wholename
'./target'
\
-o
-wholename
'*/third_party/*'
\
-o
-wholename
'*/third_party/*'
\
-o
-wholename
'*/Godeps/*'
\
-o
-wholename
'*/Godeps/*'
\
-o
-wholename
'*/codecgen-*-1234.generated.go'
\
\)
-prune
\
\)
-prune
\
\)
-name
'*.generated.go'
)
)
\)
-name
'*.generated.go'
)
)
# Build codecgen binary from Godeps.
# Register function to be called on EXIT to remove codecgen
# binary and also to touch the files that should be regenerated
# since they are first removed.
# This is necessary to make the script work after previous failure.
function
cleanup
{
function
cleanup
{
rm
-f
"
${
CODECGEN
:-}
"
rm
-f
"
${
CODECGEN
:-}
"
pushd
"
${
KUBE_ROOT
}
"
>
/dev/null
for
((
i
=
0
;
i < number
;
i++
))
;
do
touch
"
${
generated_files
[
${
i
}
]
}
"
||
true
done
popd
>
/dev/null
}
}
trap
cleanup EXIT
trap
cleanup EXIT
...
...
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