Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gluon-builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ffbs
gluon-builder
Commits
7ce37b79
Commit
7ce37b79
authored
7 years ago
by
chrissi^
Browse files
Options
Downloads
Patches
Plain Diff
Using the releasetag as name for the output directory
Signed-off-by:
Chrissi^
<
chris@tinyhost.de
>
parent
051e171e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builder.sh
+17
-9
17 additions, 9 deletions
builder.sh
with
17 additions
and
9 deletions
builder.sh
+
17
−
9
View file @
7ce37b79
...
...
@@ -81,26 +81,34 @@ done
# build manifests
# ###############
echo
making manifestss
make manifest
GLUON_BRANCH
=
$BRANCH
GLUON_PRIORITY
=
${
PRIO
}
GLUON_RELEASE
=
${
RELEASENAME
}
# write the current site-commit as into-text
# ###############
echo
writing git info into the output directory
(
cd
site/
;
git show
>
../output/images/commit.txt
)
# rename image dir to represent build
echo
Resolving symlinks...
cp
-Lr
output/images
"output/
${
RELEASETAG
}
"
rm
-rf
output/images
echo
...
done
# shorten resulting image names for some TP-Link routers
(
cd
output/images/factory
;
for
f
in
*
;
do
mv
"
$f
"
"
${
f
#gluon-ffbs-
}
"
;
done
)
echo
Shortening filenames
(
cd
output/
${
RELEASETAG
}
/factory
;
for
f
in
*
;
do
mv
"
$f
"
"
${
f
#gluon-ffbs-
}
"
;
done
)
# rename files to match the ffbs-naming conventions
# TODO: give explanation or further resources
(
cd
output/images/factory
;
for
f
in
*
raspberry-pi.img.gz
;
do
mv
"
$f
"
"
${
f
/raspberry-pi.img.gz/raspberry-pi-1.img.gz
}
"
;
done
)
echo
Renaming files
for
consistent naming scheme
(
cd
output/
${
RELEASETAG
}
/factory
;
for
f
in
*
raspberry-pi.img.gz
;
do
mv
"
$f
"
"
${
f
/raspberry-pi.img.gz/raspberry-pi-1.img.gz
}
"
;
done
)
(
cd
output/
images
/factory
;
for
f
in
*
x86-64.vmdk
;
do
mv
"
$f
"
"
${
f
/.vmdk/-vmware.vmdk
}
"
;
done
)
(
cd
output/
images
/factory
;
for
f
in
*
x86-64.vdi
;
do
mv
"
$f
"
"
${
f
/.vdi/-virtualbox.vdi
}
"
;
done
)
(
cd
output/
images
/factory
;
for
f
in
*
x86-64.img.gz
;
do
mv
"
$f
"
"
${
f
/.img.gz/-generic.img.gz
}
"
;
done
)
(
cd
output/
${
RELEASETAG
}
/factory
;
for
f
in
*
x86-64.vmdk
;
do
mv
"
$f
"
"
${
f
/.vmdk/-vmware.vmdk
}
"
;
done
)
(
cd
output/
${
RELEASETAG
}
/factory
;
for
f
in
*
x86-64.vdi
;
do
mv
"
$f
"
"
${
f
/.vdi/-virtualbox.vdi
}
"
;
done
)
(
cd
output/
${
RELEASETAG
}
/factory
;
for
f
in
*
x86-64.img.gz
;
do
mv
"
$f
"
"
${
f
/.img.gz/-generic.img.gz
}
"
;
done
)
(
cd
output/
images
/factory
;
for
f
in
*
x86-generic.vmdk
;
do
mv
"
$f
"
"
${
f
/x86-generic/x86-vmware
}
"
;
done
)
(
cd
output/
images
/factory
;
for
f
in
*
x86-generic.vdi
;
do
mv
"
$f
"
"
${
f
/x86-generic/x86-virtualbox
}
"
;
done
)
(
cd
output/
${
RELEASETAG
}
/factory
;
for
f
in
*
x86-generic.vmdk
;
do
mv
"
$f
"
"
${
f
/x86-generic/x86-vmware
}
"
;
done
)
(
cd
output/
${
RELEASETAG
}
/factory
;
for
f
in
*
x86-generic.vdi
;
do
mv
"
$f
"
"
${
f
/x86-generic/x86-virtualbox
}
"
;
done
)
# rename image dir to represent build
mv
output/images
"output/
${
RELEASETAG
}
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment