use #!/usr/bin/env bash

This commit is contained in:
veclav talica 2024-02-16 16:53:21 +05:00
parent f1d6e8e0a2
commit 18098a6859
5 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env bash
cd $(dirname "$0") cd $(dirname "$0")
mkdir -p ./.dynamic mkdir -p ./.dynamic

View File

@ -1,10 +1,11 @@
#!/bin/sh #!/usr/bin/env bash
set +e set +e
# Settings: # Settings:
# ========= # =========
export CC=cc export CC=cc
export URL=https://mjestecko.neocities.org
mkdir -p ./html/articles mkdir -p ./html/articles
@ -23,8 +24,8 @@ for d in ./articles/*/; do
mkdir -p "./html/articles/$(basename -- $d)" mkdir -p "./html/articles/$(basename -- $d)"
cp -r "$d/.static/." "./html/articles/$(basename -- $d)/" cp -r "$d/.static/." "./html/articles/$(basename -- $d)/"
fi fi
./tools/article_wrapper.py "$d/page.mmd" https://mjestecko.neocities.org | ./tools/mmd/build/multimarkdown > "./html/articles/$(basename -- $d).html" ./tools/article_wrapper.py "$d/page.mmd" $URL | ./tools/mmd/build/multimarkdown > "./html/articles/$(basename -- $d).html"
fi fi
done done
./tools/feed_generator.py ./articles/ https://mjestecko.neocities.org > ./html/feed.xml ./tools/feed_generator.py ./articles/ $URL > ./html/feed.xml

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
set +e set +e
shopt -s extglob shopt -s extglob

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env bash
git submodule init git submodule init
git submodule update git submodule update

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
for cur in ./html/{*,*/*,*/*/*}; do for cur in ./html/{*,*/*,*/*/*}; do
if [ -f "$cur" ] && [[ ! "$cur" == *.upload-checksum ]]; then if [ -f "$cur" ] && [[ ! "$cur" == *.upload-checksum ]]; then