#!/bin/bash

work_dir=`mktemp -d`
cur_dir=$PWD
echo "Scratch dir: $work_dir"
cp -a * $work_dir
cp -a ../bash $work_dir
"Generating package"
cd $work_dir
mv fsurf-osgconnect fsurf
python setup.py bdist_rpm
cp dist/*.rpm $cur_dir
rm -fr $work_dir

#!/bin/bash

work_dir=`mktemp -d`
cur_dir=$PWD
cp -a * $work_dir
cp -a ../bash $work_dir
cd $work_dir
mv fsurf-osgconnect fsurf
python setup.py bdist_rpm
rm -fr $work_dir

--- 
+++ 
@@ -2,12 +2,9 @@
 
 work_dir=`mktemp -d`
 cur_dir=$PWD
-echo "Scratch dir: $work_dir"
 cp -a * $work_dir
 cp -a ../bash $work_dir
-"Generating package"
 cd $work_dir
 mv fsurf-osgconnect fsurf
 python setup.py bdist_rpm
-cp dist/*.rpm $cur_dir
 rm -fr $work_dir
Add some output and make sure to copy rpms back
