ausil pushed to uboot-tools (master). "fix up for loop, add some indentation to make things a bit clearer"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 16:20:52 UTC 2015


>From 35c9612bcad0b11da34a0d8ac9200c48af785f9a Mon Sep 17 00:00:00 2001
From: Dennis Gilmore <dennis at ausil.us>
Date: Mon, 30 Mar 2015 11:15:12 -0500
Subject: fix up for loop, add some indentation to make things a bit clearer


diff --git a/uboot-tools.spec b/uboot-tools.spec
index 3dc2dc2..7f97403 100644
--- a/uboot-tools.spec
+++ b/uboot-tools.spec
@@ -146,10 +146,12 @@ install -p -m 0644 builds/vexpress_aemv8a/u-boot.bin $RPM_BUILD_ROOT%{_datadir}/
 for board in $(cat %SOURCE1)
 do
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/
-for file in MLO SPL spl/arndale-spl.bin spl/origen-spl.bin spl/smdkv310-spl.bin u-boot.bin u-boot.dtb u-boot-dtb-tegra.bin u-boot.img u-boot.imx u-boot-nodtb-tegra.bin u-boot-spl.kwb u-boot-sunxi-with-spl.bin
-if [ -f builds/$(echo $board)/$(echo $file) ]; then
-    install -p -m 0644 builds/$(echo $board)/$(echo $file) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/
-fi
+ for file in MLO SPL spl/arndale-spl.bin spl/origen-spl.bin spl/smdkv310-spl.bin u-boot.bin u-boot.dtb u-boot-dtb-tegra.bin u-boot.img u-boot.imx u-boot-nodtb-tegra.bin u-boot-spl.kwb u-boot-sunxi-with-spl.bin
+ do
+  if [ -f builds/$(echo $board)/$(echo $file) ]; then
+    install -p -m 0644 builds/$(echo $board)/$(echo $file) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/$(echo $file)
+  fi
+ done
 done
 
 %endif
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/uboot-tools.git/commit/?h=master&id=35c9612bcad0b11da34a0d8ac9200c48af785f9a


More information about the scm-commits mailing list