Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
85
Issues
85
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
32
Merge Requests
32
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chakra
Packages
core
Commits
ebddeb90
Commit
ebddeb90
authored
Mar 21, 2010
by
Jan Mette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No commit message
No commit message
parent
76d35aae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
26 deletions
+52
-26
build.sh
build.sh
+26
-24
increase-pkgrels.sh
increase-pkgrels.sh
+26
-2
No files found.
build.sh
View file @
ebddeb90
...
...
@@ -86,30 +86,32 @@ build_it()
if
[
"
$_build_autoinstall
"
=
"1"
]
;
then
# Look for the exact package names :
pushd
${
_build_work
}
/
${
module
}
&>/dev/null
||
exit
1
# get the pkgnames, different for an array and a bare string
if
[
`
grep
-e
"^pkgname="
PKGBUILD |
cut
-d
'='
-f2
|
cut
-c1
`
==
"("
]
;
then
# fetch the array
_module_names
=
`
pcregrep
-M
"^pkgname=
\(
.*(
\n
.*[^
\)\n
])*"
PKGBUILD |
sed
s/
"^[^
\'
]*"
//g |
sed
s/[^
\'
]
$/
/
`
else
_module_names
=(
"
`
grep
-e
"^pkgname="
PKGBUILD |
cut
-d
'='
-f2
`
"
)
fi
# version and rel
#_modver=`grep -e "^pkgver=" PKGBUILD | cut -d'=' -f2`
#_modrel=`grep -e "^pkgrel=" PKGBUILD | cut -d'=' -f2`
popd
&>/dev/null
# build a list of packages and install them at once
_packages_to_install
=
for
_m
in
$_module_names
;
do
#_pkg_full_name=`eval echo $_m-$_modver-$_modrel-*.pkg.*`
_pkg_full_name
=
`
eval echo
$_m
-
*
.pkg.
*
`
_packages_to_install
=
"
$_packages_to_install
$PKGDEST
/
$_pkg_full_name
"
done
sudo
pacman
-Uf
$_packages_to_install
||
exit
1
# pushd ${_build_work}/${module} &>/dev/null || exit 1
#
# # get the pkgnames, different for an array and a bare string
# if [ `grep -e "^pkgname=" PKGBUILD | cut -d'=' -f2 | cut -c1` == "(" ] ; then
# # fetch the array
# _module_names=`pcregrep -M "^pkgname=\(.*(\n.*[^\)\n])*" PKGBUILD | sed s/"^[^\']*"//g | sed s/[^\']$//`
# else
# _module_names=("`grep -e "^pkgname=" PKGBUILD | cut -d'=' -f2`")
# fi
#
# # version and rel
# #_modver=`grep -e "^pkgver=" PKGBUILD | cut -d'=' -f2`
# #_modrel=`grep -e "^pkgrel=" PKGBUILD | cut -d'=' -f2`
#
# popd &>/dev/null
#
# # build a list of packages and install them at once
# _packages_to_install=
# for _m in $_module_names ; do
# #_pkg_full_name=`eval echo $_m-$_modver-$_modrel-*.pkg.*`
# _pkg_full_name=`eval echo $_m-*.pkg.*`
# _packages_to_install="$_packages_to_install $PKGDEST/$_pkg_full_name"
# done
# sudo pacman -Uf $_packages_to_install || exit 1
pacman
-U
_repo/build/
${
module
}*
.pkg.
*
fi
popd
&>/dev/null
...
...
increase-pkgrels.sh
View file @
ebddeb90
...
...
@@ -54,7 +54,7 @@ increase_pkgrels() {
done
;;
suppor
t
)
fixi
t
)
title2
"Increasing support pkgrels"
for
module
in
${
whattodo
[*]
}
do
...
...
@@ -192,7 +192,31 @@ MODE=`echo $1`
# we take the repo name + the job/stage to reconstruct the variable name
# in $repo_pkgs.cfg and echo its contents... damn, eval is evil ;)
whattodo
=(
$(
eval echo
"
\$
{_build_
${
_cur_repo
}
_
${
MODE
}
[@]}"
)
)
if
[
"
$_cur_repo
"
=
"core"
]
;
then
whattodo
=(
$(
eval echo
"
\$
{_build_core_
${
MODE
}
[@]}"
)
)
elif
[
"
$_cur_repo
"
=
"core-testing"
]
;
then
whattodo
=(
$(
eval echo
"
\$
{_build_core_testing_
${
MODE
}
[@]}"
)
)
elif
[
"
$_cur_repo
"
=
"platform"
]
;
then
whattodo
=(
$(
eval echo
"
\$
{_build_platform_
${
MODE
}
[@]}"
)
)
elif
[
"
$_cur_repo
"
=
"platform-testing"
]
;
then
whattodo
=(
$(
eval echo
"
\$
{_build_platform_testing_
${
MODE
}
[@]}"
)
)
elif
[
"
$_cur_repo
"
=
"desktop"
]
;
then
whattodo
=(
$(
eval echo
"
\$
{_build_desktop_
${
MODE
}
[@]}"
)
)
elif
[
"
$_cur_repo
"
=
"desktop-testing"
]
;
then
whattodo
=(
$(
eval echo
"
\$
{_build_desktop_testing_
${
MODE
}
[@]}"
)
)
elif
[
"
$_cur_repo
"
=
"apps"
]
;
then
whattodo
=(
$(
eval echo
"
\$
{_build_apps_
${
MODE
}
[@]}"
)
)
elif
[
"
$_cur_repo
"
=
"apps-testing"
]
;
then
whattodo
=(
$(
eval echo
"
\$
{_build_apps_testing_
${
MODE
}
[@]}"
)
)
fi
increase_pkgrels
...
...
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