Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 7 lines (7 sloc) 0.283 kb
1 2 3 4 5 6 7
#!/bin/bash
RPMBUILDDIR=$1
[ -z "$RPMBUILDDIR" ] && RPMBUILDDIR=$(rpmbuild --showrc | grep ": _topdir" | awk '{print $3}')
if [ -d "$RPMBUILDDIR" ]; then
  echo "Cleaning $RPMBUILDDIR"
  find $RPMBUILDDIR -type f \( -name "*.rpm" -or -name "*.spec" -or -name "*.tar.*" \) -delete
fi
Something went wrong with that request. Please try again.