-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56a6e98
commit 448b561
Showing
16 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ Computer-Science | |
================ | ||
|
||
.. toctree:: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ Programming | |
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/usr/bin/bash | ||
|
||
source .venv/bin/activate | ||
command_to_run="make html" | ||
folder_to_search="source" | ||
directories=`find $folder_to_search -type f` | ||
files=() | ||
|
||
# Get an initial timestamp for all files in folder | ||
getTimeStamps() | ||
{ | ||
local_files=() | ||
for entry in $directories; do | ||
local_files+=("$(date -r $entry "+%m%d%Y%H%M%S")") | ||
done | ||
echo ${local_files[@]} | ||
} | ||
|
||
refreshMessage() | ||
{ | ||
echo "Refreshing build" | ||
} | ||
|
||
refreshMessage | ||
$command_to_run | ||
files=($(getTimeStamps)) | ||
|
||
echo "Watching file changes" | ||
while true; do | ||
local_files=($(getTimeStamps)) | ||
local_files_count=${#local_files[@]} | ||
|
||
files_count=${#files[@]} | ||
|
||
if [[ $files_count -ne $local_files_count ]]; then | ||
refreshMessage | ||
$command_to_run | ||
files=($(getTimeStamps)) | ||
echo "Watching file changes" | ||
continue | ||
fi | ||
for index in "${!files[@]}"; do | ||
numb_1=${local_files[$index]} | ||
numb_2=${files[$index]} | ||
if [[ $numb_1 != $numb_2 ]]; then | ||
refreshMessage | ||
$command_to_run | ||
echo "Watching file changes" | ||
files=($(getTimeStamps)) | ||
break | ||
fi | ||
done | ||
sleep 1 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ Computer-Science | |
================ | ||
|
||
.. toctree:: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ Programming | |
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|