summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2024-04-21 00:19:58 +0200
committerJybz <j.biernacki@free.fr>2024-04-21 00:19:58 +0200
commit506ed6ca15f6d8ac92773536df11af487eba21cf (patch)
treec03ff87b0621fa45c582258678d98a93fd64e862
parentf02528807875645e1c889bd12134a6c13321cdf2 (diff)
downloaddrakx-506ed6ca15f6d8ac92773536df11af487eba21cf.tar
drakx-506ed6ca15f6d8ac92773536df11af487eba21cf.tar.gz
drakx-506ed6ca15f6d8ac92773536df11af487eba21cf.tar.bz2
drakx-506ed6ca15f6d8ac92773536df11af487eba21cf.tar.xz
drakx-506ed6ca15f6d8ac92773536df11af487eba21cf.zip
chore(images): split sum generation in case of no *.img generated
-rw-r--r--images/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/images/Makefile b/images/Makefile
index abbbbfb44..1299543c1 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -24,7 +24,14 @@ images: all.kernels/.list
if [ `ls images/*.img-* 2>/dev/null | wc -l` -gt 0 ]; then \
mkdir images/alternatives; cd images/alternatives; mv ../*.img-* .; md5sum *.img-* > MD5SUM; sha512sum *.img-* > SHA512SUM; \
fi
- cd images; md5sum *.{img,iso}* > MD5SUM; sha512sum *.{img,iso}* > SHA512SUM
+ if [ `ls images/*.img* 2>/dev/null | wc -l` -gt 0 ]; then \
+ md5sum images/*.img* > MD5SUM ; sha512sum images/*.img* > SHA512SUM ; \
+ fi
+ if [ `ls images/*.iso* 2>/dev/null | wc -l` -gt 0 ]; then \
+ md5sum images/*.iso* > MD5SUM ; sha512sum images/*.iso* > SHA512SUM ; \
+ fi
+
+
all.kernels/.list: update_kernel
./update_kernel $(KERNELS)