Browse Source

cleaner init/clean

shake
parent
commit
d817cc3675
Signed by: yogsototh GPG Key ID: 7B19A4C650D59646
  1. 2
      .gitignore
  2. 1
      _full/.gitignore
  3. 1
      _optim/.gitignore
  4. 1
      _site/.gitignore
  5. 6
      engine/clean.sh

2
.gitignore

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

1
_full/.gitignore

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

1
_optim/.gitignore

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

1
_site/.gitignore

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

6
engine/clean.sh

@ -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]"

Loading…
Cancel
Save