linuxtorvalds / rpms / kernel

Forked from rpms/kernel 2 years ago
Clone
Justin Vreeland 794d92
#!/bin/sh
Justin Vreeland 794d92
Justin Vreeland 1fc083
if [ -z "$1" ]; then
Justin Vreeland 794d92
	exit 1
Justin Vreeland 794d92
fi
Justin Vreeland 794d92
Justin Vreeland 1fc083
TARGET="$1"
Justin Vreeland 794d92
Justin Vreeland 1fc083
for i in "$RPM_SOURCE_DIR"/*."$TARGET"; do
Justin Vreeland 794d92
	NEW=${i%.$TARGET}
Justin Vreeland 1fc083
	cp "$i" "$NEW"
Justin Vreeland 794d92
done