Merge branch 'haskell-project' of gitea.esy.fun:yogsototh/her.esy.fun into haskell-project
This commit is contained in:
commit
a0e129008c
13 changed files with 18 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd $(git rev-parse --show-toplevel)
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
echo "* org-publish"
|
echo "* org-publish"
|
||||||
emacs \
|
emacs \
|
||||||
--load project.el \
|
--load project.el \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd $(git rev-parse --show-toplevel)
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
echo -n "* Clean site cache"
|
echo -n "* Clean site cache"
|
||||||
rm -rf _site
|
rm -rf _site
|
||||||
rm -rf _cache
|
rm -rf _cache
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env nix-shell
|
#!/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 -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
||||||
#!nix-shell -p minify
|
#!nix-shell -p minify
|
||||||
|
|
||||||
# nix-shell -p nodePackages.clean-css
|
# nix-shell -p nodePackages.clean-css
|
||||||
|
|
||||||
minify $1 > $2
|
minify "$1" > "$2"
|
||||||
|
|
|
@ -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}
|
rootdir=${0:h}
|
||||||
echo $rootdir
|
echo "$rootdir"
|
||||||
|
|
||||||
./engine/clean.sh
|
./engine/clean.sh
|
||||||
./engine/build.sh
|
./engine/build.sh
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
#!nix-shell -i zsh
|
#!nix-shell -i zsh
|
||||||
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
#!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"
|
webdir="_site"
|
||||||
|
|
||||||
debug () {
|
debug () {
|
||||||
print -- $* >/dev/null
|
print -- "$@" >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($#>0)); then
|
if (($#>0)); then
|
||||||
|
@ -24,7 +24,7 @@ trans(){
|
||||||
|
|
||||||
print -- "Duplicate HTML by themes"
|
print -- "Duplicate HTML by themes"
|
||||||
for fic in $filelist; do
|
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
|
continue
|
||||||
fi
|
fi
|
||||||
print -n -- "$fic "
|
print -n -- "$fic "
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#!nix-shell -i zsh
|
#!nix-shell -i zsh
|
||||||
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
#!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
|
# Directory
|
||||||
webdir="_site"
|
webdir="_site"
|
||||||
postsdir="$webdir/posts"
|
postsdir="$webdir/posts"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#!nix-shell -i zsh
|
#!nix-shell -i zsh
|
||||||
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
#!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"
|
webdir="_site"
|
||||||
|
|
||||||
retrieve_classes_in_html () {
|
retrieve_classes_in_html () {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#!nix-shell -i zsh
|
#!nix-shell -i zsh
|
||||||
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
#!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"
|
webdir="_site"
|
||||||
|
|
||||||
debug () {
|
debug () {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd $(git rev-parse --show-toplevel)
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
echo "Optim HTML size"
|
echo "Optim HTML size"
|
||||||
./engine/optim-html.sh
|
./engine/optim-html.sh
|
||||||
echo "Gen themes clones"
|
echo "Gen themes clones"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd $(git rev-parse --show-toplevel)
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
cd _site && sws -d --port 3001 .
|
cd _site && sws -d --port 3001 .
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd $(git rev-parse --show-toplevel)
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
signer=yann@esposito.host
|
signer=yann@esposito.host
|
||||||
|
|
||||||
gpg --local-user $signer --output project.el.sig --detach-sign project.el
|
gpg --local-user $signer --output project.el.sig --detach-sign project.el
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
cd $(git rev-parse --show-toplevel)
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
rootdir=${0:h}
|
rootdir=${0:h}
|
||||||
echo $rootdir
|
echo $rootdir
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#!nix-shell -i zsh
|
#!nix-shell -i zsh
|
||||||
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
#!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"
|
webdir="_site"
|
||||||
|
|
||||||
sizeof() {
|
sizeof() {
|
||||||
|
|
Loading…
Reference in a new issue