repo-clean 296 B

1234567891011121314
  1. root="$(readlink -f $(dirname $BASH_SOURCE)/..)";
  2. . $root/etc/packages.conf
  3. echo "Cleaning...";
  4. for val in "${packages[@]}"; do
  5. unset package;
  6. declare -A package;
  7. eval "package=($val)";
  8. name="${package[name]}";
  9. echo -e "\t$name";
  10. cd $root/src/$name;
  11. rm -f *.pkg.tar.xz;
  12. done;
  13. echo "Done";