chengshan / rpms / kernel

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