From a0ef0b3be27e869b56597b4ccc151a122d4ad863 Mon Sep 17 00:00:00 2001 From: Janne Johansson Date: Tue, 24 Oct 2023 21:02:51 +0200 Subject: [PATCH] Simplify samples/build.sh by using subshells --- samples/build.sh | 45 ++++++++++++--------------------------------- 1 file changed, 12 insertions(+), 33 deletions(-) diff --git a/samples/build.sh b/samples/build.sh index c7a03bf..1f93031 100755 --- a/samples/build.sh +++ b/samples/build.sh @@ -1,45 +1,24 @@ #!/bin/sh -cd fractals -./build.sh -cd .. -cd games -./build.sh -cd .. +( cd fractals ; ./build.sh ) -cd hires -./build.sh -cd .. +( cd games ; ./build.sh ) -cd hiresmc -./build.sh -cd .. +( cd hires ; ./build.sh ) -cd particles -./build.sh -cd .. +( cd hiresmc ; ./build.sh ) -cd kernalio -./build.sh -cd .. +( cd particles ; ./build.sh ) -cd memmap -./build.sh -cd .. +( cd kernalio ; ./build.sh ) -cd rasterirq -./build.sh -cd .. +( cd memmap ; ./build.sh ) -cd scrolling -./build.sh -cd .. +( cd rasterirq ; ./build.sh ) -cd sprites -./build.sh -cd .. +( cd scrolling ; ./build.sh ) -cd stdio -./build.sh -cd .. +( cd sprites ; ./build.sh ) + +( cd stdio ; ./build.sh )