echos the correct commands

This commit is contained in:
2017-05-10 21:33:05 -06:00
parent 725368d210
commit 0bdc065d3e
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
#script to update packages installed from aur
#uses cower -ud and makepkg -i
#written because meat stopped working
#path variables
AURBUILD=/tmp/makepkg
#create necessary dirs if not exist
mkdir -p ${AURBUILD}
#cower --update --download --target=${AURBUILD}
cower -d -t ${AURBUILD} cower
cd ${AURBUILD}
for dir in ${AURBUILD}/*
do
cd ${dir}
echo "building ${dir}"
echo "makepkg --install"
cd ${AURBUILD}
rm -r ${dir}
done