head	1.1;
access;
symbols
	RELENG_9:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2014.03.14.13.01.50;	author svnexp;	state dead;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2014.03.14.13.01.50;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@file gen-makefiles was initially added on branch RELENG_9.
@
text
@@


1.1.2.1
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/263170
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 30
#!/bin/sh
# $FreeBSD: stable/9/sys/modules/drm2/radeonkmsfw/gen-makefiles 254885 2013-08-25 19:37:15Z dumbbell $

set -e

scriptdir=$(cd $(dirname $0) && pwd)
fwdir=$scriptdir/../../../contrib/dev/drm2/radeonkmsfw

for dir in $scriptdir/*; do
	if [ ! -d $dir ]; then
		continue
	fi
	rm -rf $dir
done

for file in $fwdir/*.uu; do
	img=$(basename $file)
	img=${img%.bin.uu}
	echo "Image: $img"

	mkdir -p $scriptdir/$img
	cat > $scriptdir/$img/Makefile <<EOF
# \$FreeBSD: stable/9/sys/modules/drm2/radeonkmsfw/gen-makefiles 254885 2013-08-25 19:37:15Z dumbbell $

KMOD=	radeonkmsfw_$img
IMG=	$img

.include <bsd.kmod.mk>
EOF
done
@

