#!/bin/sh
cp redhat/MANIFEST ./
python setup.py bdist_rpm

# cleans up after rpm build
files="build MANIFEST"

for i in $files 
do
  if [ -f $i -o -d $i ]; then
    rm -rf $i
    
    if [ $? = 0 ]; then
      echo "removed $i"
    else
      exit 1
    fi
  fi
done

