chengshan / rpms / kernel

Forked from rpms/kernel 2 years ago
Clone
Pablo Greco 7b2c62
#!/bin/sh
Pablo Greco 7b2c62
Pablo Greco 7b2c62
if [ -z $1 ]; then
Pablo Greco 7b2c62
	exit 1
Pablo Greco 7b2c62
fi
Pablo Greco 7b2c62
Pablo Greco 7b2c62
TARGET=$1
Pablo Greco 7b2c62
Pablo Greco 7b2c62
for i in $RPM_SOURCE_DIR/*.$TARGET; do
Pablo Greco 7b2c62
	NEW=${i%.$TARGET}
Pablo Greco 7b2c62
	cp $i $NEW
Pablo Greco 7b2c62
done