Compare commits

..

No commits in common. "a13d4dd824aafcbbffc4715c9fd8c322f4f771ce" and "7a89c17953553ec09396d2370031974ef373ba7b" have entirely different histories.

3 changed files with 17 additions and 5 deletions

4
.gitignore vendored
View File

@ -1,2 +1,6 @@
# ignore generated site # ignore generated site
output/ output/
# Ignore compiled files
blog/templates/index.html/header.html
blog/templates/index.html/footer.html

View File

@ -43,24 +43,28 @@ do
exit exit
;; ;;
*) *)
>&2 echo "Unknown option '-$opt'."
print_usage print_usage
exit 1 exit 1
;; ;;
esac esac
done done
while IFS= read -r -d '' dir for dir in $(find $SOURCE_DIR -mindepth 1 -type d)
do do
OUT_DIR="${OUTPUT_DIR}/${dir:${#SOURCE_DIR}}" OUT_DIR="${OUTPUT_DIR}/${dir:${#SOURCE_DIR}}"
if ! [ -d "$OUT_DIR" ] if ! [ -d "$OUT_DIR" ]
then then
mkdir -p "${OUTPUT_DIR}/${dir:${#SOURCE_DIR}}" mkdir -p "${OUTPUT_DIR}/${dir:${#SOURCE_DIR}}"
fi fi
done < <(find "$SOURCE_DIR" -mindepth 1 -type d -print0) done
while IFS= read -r -d '' file for file in $(find $SOURCE_DIR -type f)
do do
if [[ $file = *.php ]] if [[ $file = *.cfg.php ]]
then
continue
elif [[ $file = *.html.php ]] || [[ $file = *.xml.php ]]
then then
DEST_FILE="${OUTPUT_DIR}/${file:${#SOURCE_DIR}:-4}" DEST_FILE="${OUTPUT_DIR}/${file:${#SOURCE_DIR}:-4}"
if ! [ "$file" -nt "$DEST_FILE" ] if ! [ "$file" -nt "$DEST_FILE" ]
@ -80,4 +84,4 @@ do
cp "$file" "$DEST_FILE" cp "$file" "$DEST_FILE"
echo "done" echo "done"
fi fi
done < <(find "$SOURCE_DIR" -type f -not -name '*.cfg.php' -print0) done

View File

@ -36,6 +36,10 @@ to encrypt your e-mails following their very simple instructions.</p>
<li><a href="ircs://irc.libera.chat:6697/gnu" >#gnu</a></li> <li><a href="ircs://irc.libera.chat:6697/gnu" >#gnu</a></li>
<li><a href="ircs://irc.libera.chat:6697/gnu-offtopic" >#gnu-offtopic</a></li> <li><a href="ircs://irc.libera.chat:6697/gnu-offtopic" >#gnu-offtopic</a></li>
</ul> </ul>
<li>irc.oftc.net</li>
<ul>
<li><a href="ircs://irc.oftc.net:6697/debian" >#debian</a></li>
</ul>
</ul> </ul>
<?php <?php