Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (7 sloc) 0.283 kB
#!/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
Jump to Line
Something went wrong with that request. Please try again.