From d5b12930a85be28547f415c962faab273bc6f253 Mon Sep 17 00:00:00 2001 From: swoellauer Date: Thu, 12 Oct 2023 10:12:34 +0200 Subject: [PATCH] cleanup --- .gitattributes | 2 ++ .gitignore | 11 +++++++++++ add/clear_cache.sh | 5 ++++- add/photodb.sh | 2 +- add/win_photodb.cmd | 2 +- 5 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .gitattributes create mode 100644 .gitignore diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3b5aeaf --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# no line ending conversion +* -crlf \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..301531b --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +/.gradle +/.settings +/bin +/build +/cache +/log +/package +/.classpath +/.project +/accounts.yaml +/config.yaml diff --git a/add/clear_cache.sh b/add/clear_cache.sh index a26b66d..2a1621e 100644 --- a/add/clear_cache.sh +++ b/add/clear_cache.sh @@ -30,6 +30,9 @@ unlink sample_cache.trace.db unlink sample_cache.trace.db.old unlink thumb_cache.mv.db unlink thumb_cache.trace.db -unlink sample_cache.trace.db.old +unlink thumb_cache.trace.db.old +unlink sample_meta.mv.db +unlink sample_meta.trace.db +unlink sample_meta.trace.db.old echo -e "${GREEN}Done. Now you may start PhotoDB. It may take some time to regenerate database caches.${NC}" \ No newline at end of file diff --git a/add/photodb.sh b/add/photodb.sh index ca743d9..b3e6dd9 100644 --- a/add/photodb.sh +++ b/add/photodb.sh @@ -1 +1 @@ -exec java -Djava.awt.headless=true -XX:-UsePerfData -Djava.io.tmpdir=/var/tmp -Xmx2g -classpath 'photodb.jar:lib/*' photodb.Terminal "$@" \ No newline at end of file +exec java -Djava.awt.headless=true -XX:-UsePerfData -Djava.io.tmpdir=/var/tmp -Xmx3g -classpath 'photodb.jar:lib/*' photo.Terminal "$@" \ No newline at end of file diff --git a/add/win_photodb.cmd b/add/win_photodb.cmd index e4a5828..14da7e8 100644 --- a/add/win_photodb.cmd +++ b/add/win_photodb.cmd @@ -1,3 +1,3 @@ -java -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Djava.awt.headless=true -XX:-UsePerfData -Xmx3g -classpath photodb.jar;lib/* photodb.Terminal %* +java -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Djava.awt.headless=true -XX:-UsePerfData -Xmx3g -classpath photodb.jar;lib/* photo.Terminal %* pause \ No newline at end of file