#!/bin/sh

version=`cat /etc/redhat-release | sed 's/[^0-9.]//g' | cut -d . -f 1`

rm -f *rpm

cd dyndns
./buildrpms rhel"$version"
cd ../syncer
./buildrpms rhel"$version"
cd ../server
./buildrpms rhel"$version"
cd ../zonefileimporter
#./buildrpms rhel"$version"
cd ../powerdns_sync
./buildrpms rhel"$version"
cd ..

#!/bin/sh

version=`cat /etc/redhat-release | sed 's/[^0-9.]//g' | cut -d . -f 1`

rm -f *rpm
rm -f /usr/src/redhat/RPMS/*/atomiadns-*
rm -f /usr/src/redhat/SRPMS/atomiadns-*

cd dyndns
./buildrpms rhel"$version"
cd ../syncer
./buildrpms rhel"$version"
cd ../server
./buildrpms rhel"$version"
cd ../zonefileimporter
#./buildrpms rhel"$version"
cd ../powerdns_sync
./buildrpms rhel"$version"
cd ..

Remove old RPM artifacts from build server as well
Remove old RPM artifacts from build server as well
