From 0bdc065d3ea62e38273e92b914ccfb85fc94117b Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Wed, 10 May 2017 21:33:05 -0600 Subject: [PATCH] echos the correct commands --- aur-update.bash | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 aur-update.bash diff --git a/aur-update.bash b/aur-update.bash new file mode 100755 index 0000000..53c6b03 --- /dev/null +++ b/aur-update.bash @@ -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