l30013671 / rpms / kernel

Forked from rpms/kernel 2 years ago
Clone
Pablo Greco d6c4c4
#!/bin/bash
Pablo Greco d6c4c4
Pablo Greco d6c4c4
if [ -z $1 ]; then
Pablo Greco d6c4c4
	exit 1
Pablo Greco d6c4c4
fi
Pablo Greco d6c4c4
Pablo Greco d6c4c4
TARGET=$1
Pablo Greco d6c4c4
Pablo Greco d6c4c4
for i in $RPM_SOURCE_DIR/*.$TARGET; do
Pablo Greco d6c4c4
	NEW=$(echo $i | sed -e "s/\.$TARGET//")
Pablo Greco d6c4c4
	cp $i $NEW
Pablo Greco d6c4c4
done