Browse Source

a bit of shellcheck

haskell-project
parent
commit
adda573e72
Signed by: yogsototh GPG Key ID: 7B19A4C650D59646
  1. 2
      engine/build.sh
  2. 2
      engine/clean.sh
  3. 4
      engine/compresscss.sh
  4. 6
      engine/deploy.sh
  5. 6
      engine/dup-for-themes.sh
  6. 2
      engine/mkrss.sh
  7. 2
      engine/optim-classes.sh
  8. 2
      engine/optim-html.sh
  9. 2
      engine/pre-deploy.sh
  10. 2
      engine/serve.sh
  11. 2
      engine/sign-project.sh
  12. 2
      engine/sync.sh
  13. 2
      engine/update-file-size.sh

2
engine/build.sh

@ -1,6 +1,6 @@
#!/usr/bin/env bash
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
echo "* org-publish"
emacs \
--load project.el \

2
engine/clean.sh

@ -1,6 +1,6 @@
#!/usr/bin/env bash
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
echo -n "* Clean site cache"
rm -rf _site
rm -rf _cache

4
engine/compresscss.sh

@ -1,8 +1,8 @@
#!/usr/bin/env nix-shell
#!nix-shell -i zsh
#!nix-shell -i bash
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
#!nix-shell -p minify
# nix-shell -p nodePackages.clean-css
minify $1 > $2
minify "$1" > "$2"

6
engine/deploy.sh

@ -1,8 +1,8 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
rootdir=${0:h}
echo $rootdir
echo "$rootdir"
./engine/clean.sh
./engine/build.sh

6
engine/dup-for-themes.sh

@ -2,12 +2,12 @@
#!nix-shell -i zsh
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site"
debug () {
print -- $* >/dev/null
print -- "$@" >/dev/null
}
if (($#>0)); then
@ -24,7 +24,7 @@ trans(){
print -- "Duplicate HTML by themes"
for fic in $filelist; do
if echo $fic|egrep -- '-(mk|min|sci|modern).html$'>/dev/null; then
if echo $fic|grep -E -- '-(mk|min|sci|modern).html$'>/dev/null; then
continue
fi
print -n -- "$fic "

2
engine/mkrss.sh

@ -2,7 +2,7 @@
#!nix-shell -i zsh
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
# Directory
webdir="_site"
postsdir="$webdir/posts"

2
engine/optim-classes.sh

@ -2,7 +2,7 @@
#!nix-shell -i zsh
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site"
retrieve_classes_in_html () {

2
engine/optim-html.sh

@ -2,7 +2,7 @@
#!nix-shell -i zsh
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site"
debug () {

2
engine/pre-deploy.sh

@ -1,6 +1,6 @@
#!/usr/bin/env bash
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
echo "Optim HTML size"
./engine/optim-html.sh
echo "Gen themes clones"

2
engine/serve.sh

@ -1,4 +1,4 @@
#!/usr/bin/env bash
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
cd _site && sws -d --port 3001 .

2
engine/sign-project.sh

@ -1,6 +1,6 @@
#!/usr/bin/env bash
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
signer=yann@esposito.host
gpg --local-user $signer --output project.el.sig --detach-sign project.el

2
engine/sync.sh

@ -1,6 +1,6 @@
#!/usr/bin/env zsh
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
rootdir=${0:h}
echo $rootdir

2
engine/update-file-size.sh

@ -2,7 +2,7 @@
#!nix-shell -i zsh
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site"
sizeof() {

Loading…
Cancel
Save