Browse Source

changed build target

main
Diane 6 months ago
parent
commit
35da34b60b
No known key found for this signature in database GPG Key ID: 2D0649E76A7C8D25
  1. 2
      .gitignore
  2. 9
      blog.sh

2
.gitignore

@ -1 +1 @@
out/
www.aphrodite.dev/

9
blog.sh

@ -8,6 +8,7 @@ blog_sh="$PWD/$(basename $0)"
export blog_name="Aphrodite"
export author="Diane <me@aphrodite.dev>"
export out_dir="$root/www.aphrodite.dev"
function handle_html {
input="$1/$2.gmi"
@ -50,9 +51,9 @@ if (( $# == 1 )); then
exit 0
fi
if [[ -d "out" ]]; then
rm -rf "out"
if [[ -d "$out_dir" ]]; then
rm -rf "$out_dir"
fi
cp -r www out
find out -type f -exec "$blog_sh" {} \;
cp -r www "$out_dir"
find "$out_dir" -type f -exec "$blog_sh" {} \;
Loading…
Cancel
Save