From 49d23940f85696162b89b00741be09c95197b94e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 18 Dec 2020 23:34:09 -0300 Subject: Ignore XCF and PSD files left in the tree. --- .gitignore | 2 ++ comp.py | 10 +++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 455e12e..0528da2 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ live *.dev** tba/* x* +*.xcf +*.psd diff --git a/comp.py b/comp.py index 97ec03a..756961d 100755 --- a/comp.py +++ b/comp.py @@ -18,12 +18,11 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ######################################################################################## # This builds live/ folder for Update Server -import subprocess, json, sys, os, traceback +import subprocess, os, traceback PATH="/var/www/html/assets" # Delete previous deployment subprocess.call("rm --recursive %s/*" % PATH, shell=True) -f=open("resources.json", "w") rc=[] @@ -46,17 +45,14 @@ for path, subdir, files in os.walk("raw/"): if EXT in ["png", "jpg", "jpeg"]: subprocess.call("convert %s %s/%s" % (fn, PATH, NAME), shell=True) EXT="webp" + elif EXT in ["xcf", "psd"]: + pass else: subprocess.call("cp %s %s/%s.%s" % (fn, PATH, NAME, EXT), shell=True) - rc.append([NAME, EXT]) except: traceback.print_exc() pass -# Save new summary -json.dump(rc, f) -f.close() - # Create blank index page to disable dir listing subprocess.call("touch %s/index.html" % PATH, shell=True) -- cgit v1.2.3-60-g2f50