|
@@ -1,6 +1,8 @@
|
1
|
1
|
#!/bin/bash
|
2
|
2
|
# This script will create a plugin jar file for a given plugin.
|
3
|
3
|
|
|
4
|
+VALID_EXTS="class,png,exe,dll,html,css,js,gif,py"
|
|
5
|
+
|
4
|
6
|
if [ "${1}" = "" -o "${2}" = "" ]; then
|
5
|
7
|
echo "Usage Example: ${0} com.dmdirc.addons.windowstatus WindowStatusPlugin"
|
6
|
8
|
echo "The above would create WindowStatusPlugin.jar in the plugins/ folder of the current dir"
|
|
@@ -83,7 +85,11 @@ while [ 1 -eq 1 ]; do
|
83
|
85
|
/bin/sh "${prepackage}"
|
84
|
86
|
cd ${DIR}
|
85
|
87
|
done;
|
86
|
|
- jar -uvf "${srcdir}/src/${foldername}/${2}.jar" `ls -1 ${foo}${bit}/*.{class,png,exe,dll,html,css,js,gif} 2>/dev/null` >/dev/null
|
|
88
|
+
|
|
89
|
+ FILES="ls -1 "${foo}${bit}/"*.{${VALID_EXTS}}"
|
|
90
|
+ FILES=`eval ${FILES} 2>/dev/null`
|
|
91
|
+
|
|
92
|
+ jar -uvf "${srcdir}/src/${foldername}/${2}.jar" ${FILES} >/dev/null
|
87
|
93
|
fi
|
88
|
94
|
done
|
89
|
95
|
|