#!/bin/bashif [ -z $1 ]; then exit 1fi TARGET=$1 for i in $RPM_SOURCE_DIR/*.$TARGET; do NEW=$(echo $i | sed -e "s/\.$TARGET//") cp $i $NEWdone