-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtitles2properties.sh
executable file
·53 lines (35 loc) · 1.4 KB
/
titles2properties.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
SRC_DIR=.
TITLES="$SRC_DIR"/src/main/java/com/chare/mcb/www/WebApplication_
#JAVA_HOME=/usr/
#/usr/java/latest/
TARGET_DIR="$SRC_DIR"/src/main/jasperreports
#ls -al "$TITLES"en.properties.xml
cp "$TITLES"en.properties.xml titles_en.xml
sed 2d -i titles_en.xml
xsltproc -o titles_en.properties titles2properties.xsl titles_en.xml
mv titles_en.properties "$TARGET_DIR"/titles_en.properties
rm titles_en.xml
#ls -al "$TARGET_DIR"/titles_en.properties
#ls -al "$TITLES"cs.properties.xml
cp "$TITLES"cs.properties.xml titles_cs.xml
sed 2d -i titles_cs.xml
xsltproc -o titles_cs.properties titles2properties.xsl titles_cs.xml
#"$JAVA_HOME"bin/native2ascii titles_cs_.properties > titles_cs.properties
mv titles_cs.properties "$TARGET_DIR"/titles_cs.properties
rm titles_cs.xml
#ls -al "$TARGET_DIR"/titles_cs.properties
#ls -al "$TITLES"de.properties.xml
cp "$TITLES"de.properties.xml titles_de.xml
sed 2d -i titles_de.xml
xsltproc -o titles_de.properties titles2properties.xsl titles_de.xml
mv titles_de.properties "$TARGET_DIR"/titles_de.properties
rm titles_de.xml
#ls -al "$TARGET_DIR"/titles_de.properties
#ls -al "$TITLES"sk.properties.xml
cp "$TITLES"sk.properties.xml titles_sk.xml
sed 2d -i titles_sk.xml
xsltproc -o titles_sk.properties titles2properties.xsl titles_sk.xml
mv titles_sk.properties "$TARGET_DIR"/titles_sk.properties
rm titles_sk.xml
#ls -al "$TARGET_DIR"/titles_sk.properties