Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Oskar Roesler
ros-aur-helpers
Commits
2e4d5022
Verified
Commit
2e4d5022
authored
Dec 10, 2020
by
Oskar Roesler
Browse files
Add scripts/set-boost1.69.sh
parent
94f6f826
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
scripts/set-boost1.69.sh
scripts/set-boost1.69.sh
+24
-0
No files found.
scripts/set-boost1.69.sh
0 → 100755
View file @
2e4d5022
#!/bin/zsh
CACHE_PATH
=
${
XDG_CACHE_HOME
:-
"
$HOME
/.cache"
}
PACKAGES_PATH
=
$CACHE_PATH
/ros-aur-helper/packages
for
i
in
$(
ls
$PACKAGES_PATH
)
;
do
if
grep
-q
'boost'
$PACKAGES_PATH
/
$i
/PKGBUILD
&&
!
grep
-q
'boost1.69'
$PACKAGES_PATH
/
$i
/PKGBUILD
;
then
echo
"
$i
links against wrong boost"
cd
$PACKAGES_PATH
/
$i
sed
-i
"s/boost/boost1.69/g"
PKGBUILD
sed
-i
's!-DSETUPTOOLS_DEB_LAYOUT=OFF!-DSETUPTOOLS_DEB_LAYOUT=OFF \\\n\t\t -DBOOST_ROOT=/opt/boost1.69!g'
PKGBUILD
grep
"pkgrel"
PKGBUILD |
IFS
=
"="
read
-r
name value
((
pkgrel
=
$value
+ 1
))
sed
-i
"s/pkgrel=
$value
/pkgrel=
$pkgrel
/g"
PKGBUILD
makepkg
--printsrcinfo
>
.SRCINFO
git add PKGBUILD .SRCINFO
git commit
-m
"Hardcode Boost Version to 1.69"
git push origin master
cd
-
;
else
echo
"
$i
doesn't link against boost or already against version 1.69"
;
fi
done
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