-
Notifications
You must be signed in to change notification settings - Fork 4
/
compact.sh
19 lines (17 loc) · 878 Bytes
/
compact.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
echo "***********************************************************************"
echo "* This shell script will compact and reorganize the VCP NRS database. *"
echo "* This process can take a long time. Do not interrupt the script *"
echo "* or shutdown the computer until it finishes. *"
echo "* *"
echo "* To compact the database used while in a desktop mode, i.e. located *"
echo "* under ~/.nxt/ , invoke this script as: *"
echo "* ./compact.sh -Dnxt.runtime.mode=desktop *"
echo "***********************************************************************"
if [ -x jdk/bin/java ]; then
JAVA=./jdk/bin/java
else
JAVA=java
fi
${JAVA} -Xmx1024m -cp "classes:lib/*:conf" $@ nxt.tools.CompactDatabase
exit $?