Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
celllframe-node
Commits
1c7139c2
Commit
1c7139c2
authored
5 years ago
by
alexandr.kravchenko
Browse files
Options
Downloads
Patches
Plain Diff
uncommented post-build script
parent
24c77d5d
No related branches found
No related tags found
2 merge requests
!71
Support 2649
,
!70
Support 2649
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
prod_build/general/chroot_wrap.sh
+1
-1
1 addition, 1 deletion
prod_build/general/chroot_wrap.sh
prod_build/general/chroot_wrap.sh.save
+0
-46
0 additions, 46 deletions
prod_build/general/chroot_wrap.sh.save
with
1 addition
and
47 deletions
prod_build/general/chroot_wrap.sh
+
1
−
1
View file @
1c7139c2
...
...
@@ -38,7 +38,7 @@ for platform in $PLATFORMS; do
fi
done
done
#
[ -e prod_build/$platform/scripts/post-build.sh ] && prod_build/$platform/scripts/post-build.sh #For post-build actions not in chroot (global publish)
[
-e
prod_build/
$platform
/scripts/post-build.sh
]
&&
prod_build/
$platform
/scripts/post-build.sh
#For post-build actions not in chroot (global publish)
PKG_FORMAT
=
$(
echo
$PKG_FORMAT
|
cut
-d
' '
-f2-
)
# export_variables clean
done
...
...
This diff is collapsed.
Click to expand it.
prod_build/general/chroot_wrap.sh.save
deleted
100755 → 0
+
0
−
46
View file @
24c77d5d
#!/bin/bash
export_variables
()
{
IFS
=
$'
\n
'
for
variable
in
$(
cat
prod_build/
$platform
/conf/
*
)
;
do
[
-z
$1
]
&&
export
$(
echo
"
$variable
"
|
sed
's/\"//g'
)
||
export
-n
$(
echo
$variable
|
cut
-d
'='
-f1
)
done
}
CHROOT_PREFIX
=
"builder"
CHROOTS_PATH
=
$1
PLATFORMS
=
$2
PKG_FORMAT
=
$3
SRC_PATH
=
$4
JOB
=
$5
cd
$SRC_PATH
for
platform
in
$PLATFORMS
;
do
export_variables
IFS
=
' '
PKG_TYPE
=
$(
echo
$PKG_FORMAT
|
cut
-d
' '
-f1
)
#Check if chroots are present
echo
$HOST_DISTR_VERSIONS
echo
$HOST_ARCH_VERSIONS
[
-e
prod_build/
$platform
/scripts/pre-build.sh
]
&&
prod_build/
$platform
/scripts/pre-build.sh
#For actions not in chroot (like version update)
for
distr
in
$HOST_DISTR_VERSIONS
;
do
for
arch
in
$HOST_ARCH_VERSIONS
;
do
if
[
-e
$CHROOTS_PATH
/
$CHROOT_PREFIX
-
$distr
-
$arch
]
;
then
schroot
-c
$CHROOT_PREFIX
-
$distr
-
$arch
--
launcher.sh prod_build/
$platform
/scripts/
$JOB
.sh
$PKG_TYPE
||
errcode
=
$?
else
echo
"chroot
$CHROOT_PREFIX
-
$distr
-
$arch
not found. You should install it first"
fi
done
done
[
-e
prod_build/
$platform
/scripts/post-build.sh
]
&&
prod_build/
$platform
/scripts/post-build.sh
#For post-build actions not in chroot (like global publish)
PKG_FORMAT
=
$(
echo
$PKG_FORMAT
|
cut
-d
' '
-f2-
)
export_variables clean
done
[
$(
mount |
grep
"/run/schroot/mount"
)
]
&&
sudo
umount
-l
/run/schroot/mount
&&
sudo rm
-r
/run/schroot/mount/
*
#Removing mountpoint odds.
cd
$wd
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