cleaner init/clean

This commit is contained in:
Yann Esposito (Yogsototh) 2020-04-11 14:29:35 +02:00
parent db338f601b
commit d817cc3675
Signed by untrusted user who does not match committer: yogsototh
GPG Key ID: 7B19A4C650D59646
5 changed files with 7 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
_*
_cache/
src/archive.org
.direnv/

1
_full/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
!.gitignore

1
_optim/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
!.gitignore

1
_site/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
!.gitignore

View File

@ -2,8 +2,8 @@
cd "$(git rev-parse --show-toplevel)" || exit 1
echo -n "* Clean site cache"
find _site -mindepth 1 -delete
find _full -mindepth 1 -delete
find _optim -mindepth 1 -delete
find _site -not -path "_site/.gitignore" -mindepth 1 -delete
find _full -not -path "_full/.gitignore" -mindepth 1 -delete
find _optim -not -path "_optim/.gitignore" -mindepth 1 -delete
rm -rf _cache
echo " [done]"