-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.plist
28 lines (27 loc) · 1.01 KB
/
info.plist
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>command</key>
<string>export TM_YEAR=`date +%Y`
export TM_DATE=`date +%Y-%m-%d`
TM_HEADER=$(ruby <<"EOF"
puts ENV['TM_NEW_FILE'].gsub(/java$/,'tml').gsub('java', 'resources')
EOF)
export PACKAGE=$(ruby <<"EOF"
puts ENV['TM_NEW_FILE_DIRECTORY'].gsub(/^.*java\//,'').gsub('/','.')
EOF)
if [[ ! (-f $TM_NEW_FILE || -f $TM_HEADER) ]]; then
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <template_in.java >"$TM_NEW_FILE"
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <template_in.tml >"$TM_HEADER"
fi</string>
<key>extension</key>
<string>java</string>
<key>files</key>
<string>ruby -e "puts ENV['TM_NEW_FILE']; print ENV['TM_NEW_FILE'].gsub(/java$/,'tml').gsub('java', 'resources')"</string>
<key>name</key>
<string>Component</string>
<key>uuid</key>
<string>E8C1677D-B4A0-48A3-AC14-3B3EF881E784</string>
</dict>
</plist>