From 34fe43d1484a8b765c2894236634b051fccd2d13 Mon Sep 17 00:00:00 2001 From: Paul Kuruvilla Date: Mon, 30 Sep 2024 19:25:22 +0100 Subject: [PATCH] trigger rebuild --- compiled_starters/swift/.codecrafters/compile.sh | 3 ++- compiled_starters/swift/your_program.sh | 3 ++- solutions/swift/01-jm1/code/.codecrafters/compile.sh | 3 ++- solutions/swift/01-jm1/code/your_program.sh | 3 ++- starter_templates/swift/code/.codecrafters/compile.sh | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/compiled_starters/swift/.codecrafters/compile.sh b/compiled_starters/swift/.codecrafters/compile.sh index 5b1db13..82372f7 100755 --- a/compiled_starters/swift/.codecrafters/compile.sh +++ b/compiled_starters/swift/.codecrafters/compile.sh @@ -17,7 +17,8 @@ if [ -d "/tmp/codecrafters-build-redis-swift" ]; then mv /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift # This DOES trigger a rebuild! inode changes? - # cp -R /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift + mv /tmp/codecrafters-build-redis-swift /tmp/codecrafters-build-redis-swift-old + cp -R /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift else echo "Build directory does not exist." fi diff --git a/compiled_starters/swift/your_program.sh b/compiled_starters/swift/your_program.sh index 5b5eb13..ea5ec43 100755 --- a/compiled_starters/swift/your_program.sh +++ b/compiled_starters/swift/your_program.sh @@ -20,7 +20,8 @@ set -e # Exit early if any commands fail mv /tmp/codecrafters-build-redis-swift /tmp/codecrafters-build-redis-swift-old mv /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift # This DOES trigger a rebuild! inode changes? - # cp -R /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift + mv /tmp/codecrafters-build-redis-swift /tmp/codecrafters-build-redis-swift-old + cp -R /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift else echo "Build directory does not exist." fi diff --git a/solutions/swift/01-jm1/code/.codecrafters/compile.sh b/solutions/swift/01-jm1/code/.codecrafters/compile.sh index 5b1db13..82372f7 100755 --- a/solutions/swift/01-jm1/code/.codecrafters/compile.sh +++ b/solutions/swift/01-jm1/code/.codecrafters/compile.sh @@ -17,7 +17,8 @@ if [ -d "/tmp/codecrafters-build-redis-swift" ]; then mv /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift # This DOES trigger a rebuild! inode changes? - # cp -R /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift + mv /tmp/codecrafters-build-redis-swift /tmp/codecrafters-build-redis-swift-old + cp -R /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift else echo "Build directory does not exist." fi diff --git a/solutions/swift/01-jm1/code/your_program.sh b/solutions/swift/01-jm1/code/your_program.sh index 5b5eb13..ea5ec43 100755 --- a/solutions/swift/01-jm1/code/your_program.sh +++ b/solutions/swift/01-jm1/code/your_program.sh @@ -20,7 +20,8 @@ set -e # Exit early if any commands fail mv /tmp/codecrafters-build-redis-swift /tmp/codecrafters-build-redis-swift-old mv /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift # This DOES trigger a rebuild! inode changes? - # cp -R /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift + mv /tmp/codecrafters-build-redis-swift /tmp/codecrafters-build-redis-swift-old + cp -R /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift else echo "Build directory does not exist." fi diff --git a/starter_templates/swift/code/.codecrafters/compile.sh b/starter_templates/swift/code/.codecrafters/compile.sh index 5b1db13..82372f7 100755 --- a/starter_templates/swift/code/.codecrafters/compile.sh +++ b/starter_templates/swift/code/.codecrafters/compile.sh @@ -17,7 +17,8 @@ if [ -d "/tmp/codecrafters-build-redis-swift" ]; then mv /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift # This DOES trigger a rebuild! inode changes? - # cp -R /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift + mv /tmp/codecrafters-build-redis-swift /tmp/codecrafters-build-redis-swift-old + cp -R /tmp/codecrafters-build-redis-swift-old /tmp/codecrafters-build-redis-swift else echo "Build directory does not exist." fi