From ce325924f1ccdfd57dfcfdf107c7c289e019ea3f Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 11 Oct 2016 22:01:35 +0200 Subject: * moving .gitignore for caches --- .gitignore | 1 - Makefile | 2 +- bin/static-site.php | 2 +- caches/.gitignore | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 caches/.gitignore diff --git a/.gitignore b/.gitignore index 47b8d4d..a58bec5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -caches/* _log/* diff --git a/Makefile b/Makefile index 0a2d091..974a324 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ all: build build: - find caches -type f -delete + find caches -type f -not -name '.gitignore' -delete ./bin/static-site.php test: devel build diff --git a/bin/static-site.php b/bin/static-site.php index b121964..8b76555 100755 --- a/bin/static-site.php +++ b/bin/static-site.php @@ -74,7 +74,7 @@ exec( . escapeshellarg($inputDirectory . DIRECTORY_SEPARATOR) . ' ' . escapeshellarg($outputDirectory)); -exec('find ' . escapeshellarg(compile_path('caches')) . ' -type f -delete'); +exec('find ' . escapeshellarg(compile_path('caches')) . ' -type f -not -name .gitignore -delete'); $bootstrapper = compile_path(['include', 'setup.php']); require_once($bootstrapper); diff --git a/caches/.gitignore b/caches/.gitignore new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/caches/.gitignore @@ -0,0 +1 @@ +* -- cgit v1.2.3