Skip to content

Commit 568d109

Browse files
committed
[NEW] Add build-jar.sh script
1 parent 4b04034 commit 568d109

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

build-jar.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
# Create color folder
4+
TEMPLATE_FOLDER=templates
5+
mkdir ${TEMPLATE_FOLDER}
6+
7+
# Copy the Odoo.xml files to templates folder
8+
cp Odoo.xml ${TEMPLATE_FOLDER}
9+
10+
# Create an empty "IntelliJ IDEA Global Settings" file,
11+
# needed to be able to import the JAR using "Import Settings..."
12+
touch "IntelliJ IDEA Global Settings"
13+
jar cfM settings.jar "IntelliJ IDEA Global Settings" ${TEMPLATE_FOLDER}
14+
15+
# Remove temporary folders and files
16+
rm -rf ${TEMPLATE_FOLDER}
17+
rm "IntelliJ IDEA Global Settings"

0 commit comments

Comments
 (0)