From d1c72f4de2d385635dbf8a292fc32c6b93b074b6 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Sat, 16 Sep 2017 12:05:01 -0600 Subject: [PATCH] Add slashes after source and build to support symlinks --- repo.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/repo.sh b/repo.sh index 083316b66..68a3167d8 100755 --- a/repo.sh +++ b/repo.sh @@ -13,19 +13,19 @@ fi for recipe in $recipes do - if [ ! -d "recipes/$recipe/source" ] + if [ ! -d "recipes/$recipe/source/" ] then echo -e "\033[01;38;5;215mrepo - fetching $recipe\033[0m" >&2 ./cook.sh "$recipe" fetch fi - if [ ! -d "recipes/$recipe/build" ] + if [ ! -d "recipes/$recipe/build/" ] then echo -e "\033[01;38;5;155mrepo - preparing $recipe\033[0m" >&2 ./cook.sh "$recipe" prepare else - TIME_SOURCE="$($FIND recipes/$recipe/source -type f -not -path '*/.git*' -printf "%Ts\n" | sort -nr | head -n 1)" - TIME_BUILD="$($FIND recipes/$recipe/build -type f -not -path '*/.git*' -printf "%Ts\n" | sort -nr | head -n 1)" + TIME_SOURCE="$($FIND recipes/$recipe/source/ -type f -not -path '*/.git*' -printf "%Ts\n" | sort -nr | head -n 1)" + TIME_BUILD="$($FIND recipes/$recipe/build/ -type f -not -path '*/.git*' -printf "%Ts\n" | sort -nr | head -n 1)" if [ "$TIME_SOURCE" -gt "$TIME_BUILD" ] then echo -e "\033[01;38;5;155mrepo - repreparing $recipe\033[0m" >&2 @@ -38,7 +38,7 @@ do echo -e "\033[01;38;5;155mrepo - building $recipe\033[0m" >&2 ./cook.sh "$recipe" build stage tar else - TIME_BUILD="$($FIND recipes/$recipe/build -type f -not -path '*/.git*' -printf "%Ts\n" | sort -nr | head -n 1)" + TIME_BUILD="$($FIND recipes/$recipe/build/ -type f -not -path '*/.git*' -printf "%Ts\n" | sort -nr | head -n 1)" TIME_STAGE="$($STAT -c "%Y" recipes/$recipe/stage.tar.gz)" TIME_RECIPE="$($FIND recipes/$recipe/{recipe.sh,*.patch} -printf '%Ts\n' | sort -nr | head -n 1)" if [ "$TIME_BUILD" -gt "$TIME_STAGE" -o "$TIME_RECIPE" -gt "$TIME_STAGE" ] -- GitLab