Skip to content
Snippets Groups Projects
Commit d1c72f4d authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add slashes after source and build to support symlinks

parent b991094b
No related branches found
No related tags found
No related merge requests found
...@@ -13,19 +13,19 @@ fi ...@@ -13,19 +13,19 @@ fi
for recipe in $recipes for recipe in $recipes
do do
if [ ! -d "recipes/$recipe/source" ] if [ ! -d "recipes/$recipe/source/" ]
then then
echo -e "\033[01;38;5;215mrepo - fetching $recipe\033[0m" >&2 echo -e "\033[01;38;5;215mrepo - fetching $recipe\033[0m" >&2
./cook.sh "$recipe" fetch ./cook.sh "$recipe" fetch
fi fi
if [ ! -d "recipes/$recipe/build" ] if [ ! -d "recipes/$recipe/build/" ]
then then
echo -e "\033[01;38;5;155mrepo - preparing $recipe\033[0m" >&2 echo -e "\033[01;38;5;155mrepo - preparing $recipe\033[0m" >&2
./cook.sh "$recipe" prepare ./cook.sh "$recipe" prepare
else else
TIME_SOURCE="$($FIND recipes/$recipe/source -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)" 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" ] if [ "$TIME_SOURCE" -gt "$TIME_BUILD" ]
then then
echo -e "\033[01;38;5;155mrepo - repreparing $recipe\033[0m" >&2 echo -e "\033[01;38;5;155mrepo - repreparing $recipe\033[0m" >&2
...@@ -38,7 +38,7 @@ do ...@@ -38,7 +38,7 @@ do
echo -e "\033[01;38;5;155mrepo - building $recipe\033[0m" >&2 echo -e "\033[01;38;5;155mrepo - building $recipe\033[0m" >&2
./cook.sh "$recipe" build stage tar ./cook.sh "$recipe" build stage tar
else 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_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)" 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" ] if [ "$TIME_BUILD" -gt "$TIME_STAGE" -o "$TIME_RECIPE" -gt "$TIME_STAGE" ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment