Verified Commit a88cb22e authored by Oskar Roesler's avatar Oskar Roesler
Browse files

Make scripts in scripts/ workable with new directory locations

parent 7fb98ad1
#!/bin/bash
for dir in $(ls packages);
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/packages
for dir in $(ls $PACKAGES_PATH);
do
cd packages/$dir
cd $PACKAGES_PATH/$dir
if git status | grep -q '.SRCINFO'; then
git add .SRCINFO PKGBUILD
git commit -m "Updated package"
......
#!/bin/zsh
for i in `ls packages`;
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/packages
for i in $(ls $PACKAGES_PATH);
do
if pacman -Si $i | egrep -q 'cpp|boost'; then
echo "$i contains c++ code"
if ! grep "('any')" packages/$i/PKGBUILD; then
if ! grep "('any')" $PACKAGES_PATH/$i/PKGBUILD; then
echo "$i already has a correct arch=() array"
continue;
fi
cd packages/$i
cd $PACKAGES_PATH/$i
sed -i "s/arch=('any')/arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h')/g" PKGBUILD
grep "pkgrel" PKGBUILD | IFS="=" read -r name value
(( pkgrel = $value + 1 ))
......
#!/bin/zsh
for i in `ls packages`;
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/packages
for i in $(ls $PACKAGES_PATH);
do
if grep 'DPYTHON_LIBRARY' packages/$i/PKGBUILD; then
if grep 'DPYTHON_LIBRARY' $PACKAGES_PATH/$i/PKGBUILD; then
echo "$i has unnecessary cmake args"
cd packages/$i
cd $PACKAGES_PATH/$i
sed -i '/-DPYTHON_BASENAME/d' PKGBUILD
sed -i '/-DPYTHON_LIBRARY/d' PKGBUILD
sed -i '/-DPYTHON_INCLUDE_DIR/d' PKGBUILD
......
#!/bin/zsh
for i in `ls packages`;
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/packages
for i in $(ls $PACKAGES_PATH);
do
if grep 'eigen3' packages/$i/PKGBUILD; then
if grep 'eigen3' $PACKAGES_PATH/$i/PKGBUILD; then
echo "$i depends on eigen3"
cd packages/$i
cd $PACKAGES_PATH/$i
sed -i "s/eigen3/eigen/g" PKGBUILD
grep "pkgrel" PKGBUILD | IFS="=" read -r name value
(( pkgrel = $value + 1 ))
......
#!/bin/zsh
for i in `ls packages`;
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/packages
for i in $(ls $PACKAGES_PATH);
do
if grep 'intel-tbb' packages/$i/PKGBUILD; then
if grep 'intel-tbb' $PACKAGES_PATH/$i/PKGBUILD; then
echo "$i depends on intel-tbb"
cd packages/$i
cd $PACKAGES_PATH/$i
sed -i "s/intel-tbb/tbb/g" PKGBUILD
grep "pkgrel" PKGBUILD | IFS="=" read -r name value
(( pkgrel = $value + 1 ))
......
#!/bin/zsh
for i in `ls packages`;
CACHE_PATH=${XDG_CACHE_HOME+"~/.cache"}
PACKAGES_PATH=$CACHE_PATH/ros-aur-helper/\$PACKAGES_PATH
for i in $(ls $PACKAGES_PATH);
do
if grep '/bin/python2' packages/$i/PKGBUILD; then
if grep '/bin/python2' $PACKAGES_PATH/$i/PKGBUILD; then
echo "$i links against python2"
cd packages/$i
cd $PACKAGES_PATH/$i
sed -i "s!/bin/python2!/bin/python3!g" PKGBUILD
sed -i "s/-v 2/-v 3/g" PKGBUILD
grep "pkgrel" PKGBUILD | IFS="=" read -r name value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment