Skip to content

Commit

Permalink
Added TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobettelini committed Dec 11, 2023
1 parent 3159cba commit e46007b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions stellar/compile_last_pull
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ cd "$SCRIPT_DIR"
# get last pull files files
output="$(git diff --name-status HEAD@{1}..HEAD)"

# TODO:
# git will give various files like
# - source/folder/file1.html
# - source/folder/file1.html
# and the scripts need to compile "source/folder" only once

IFS=$'\n' # Set the Internal Field Separator to newline
for line in $output; do
if [[ $line == *"source/"* ]]; then
file=$(echo "$line" | sed 's/.*\/source/source/') # remove everything after source
./compile $file
file=$(echo "$line" | sed 's/.*\/source/source/') # remove everything before "source"
echo $file
#./compile $file
fi
done

Expand Down

0 comments on commit e46007b

Please sign in to comment.