-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpack-all-in-one.kvs
54 lines (40 loc) · 1.14 KB
/
pack-all-in-one.kvs
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
53
# Pack all themes in a single package
# The output path
%szPackagePath = $file.homedir(KVIrc-Giant-Theme-Pack-1.0.0.kvt)
# The name of the package
%szPackageName = "KVIrc Giant Theme Pack"
# The version of the package
%szPackageVersion = "1.0.0"
# The description of the themes package
%szPackageDescription = "A big fat pack of themes"
# The author
%szPackageAuthor = "Szymon Tomasz Stefanek"
# You can put a path to an image here, it will be used as package presentation image
%szPackageImage = ""
################################################################################################
%dir = $file.extractPath($0)
echo "Packing all themes in directory %dir"
%aDirs = $file.ls(%dir,d)
%aPaths = $array()
foreach(%d,%aDirs)
{
if(%d == "." || %d == "..")
continue;
echo "Theme directory %d"
%inf = $theme.info(%dir/%d);
if(%inf{"name"} == "")
continue;
if(%inf{"version"} == "")
continue;
echo "Theme name is "%inf{"name"}
echo "Theme version is "%inf{"version"}
%aPaths <+ %dir/%d
}
theme.pack \
%szPackagePath \
%szPackageName \
%szPackageVersion \
%szPackageDescription \
%szPackageAuthor \
%szPackageImage \
%aPaths