Compare commits

..

5 Commits

3 changed files with 5 additions and 17 deletions

4
.gitignore vendored
View File

@ -1,6 +1,2 @@
# 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,28 +43,24 @@ do
exit exit
;; ;;
*) *)
>&2 echo "Unknown option '-$opt'."
print_usage print_usage
exit 1 exit 1
;; ;;
esac esac
done done
for dir in $(find $SOURCE_DIR -mindepth 1 -type d) while IFS= read -r -d '' dir
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 done < <(find "$SOURCE_DIR" -mindepth 1 -type d -print0)
for file in $(find $SOURCE_DIR -type f) while IFS= read -r -d '' file
do do
if [[ $file = *.cfg.php ]] if [[ $file = *.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" ]
@ -84,4 +80,4 @@ do
cp "$file" "$DEST_FILE" cp "$file" "$DEST_FILE"
echo "done" echo "done"
fi fi
done done < <(find "$SOURCE_DIR" -type f -not -name '*.cfg.php' -print0)

View File

@ -36,10 +36,6 @@ 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