forked from psi-im/psi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
update_iconsets.sh
47 lines (37 loc) · 1.24 KB
/
update_iconsets.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
#!/bin/sh
SOURCE_DIR=../../iconsets
TARGET_DIR=../iconsets
ROSTER_DEFAULT='crystal-roster'
ROSTER_EXTRAS='
crystal-aim crystal-icq crystal-msn crystal-service crystal-yahoo
crystal-gadu crystal-sms crystal-roster
'
SYSTEM_DEFAULT='crystal-system'
SYSTEM_EXTRAS=''
################################################################################
if test ! -d $SOURCE_DIR; then
echo "Cannot find source dir $SOURCE_DIR"
exit
fi
if test ! -d $TARGET_DIR; then
echo "Cannot find target dir $TARGET_DIR"
exit
fi
################################################################################
# Roster iconsets
echo '*** Updating Roster iconsets ***'
#cp -R $SOURCE_DIR/roster/$ROSTER_DEFAULT/* $TARGET_DIR/roster/default
rm -f $TARGET_DIR/roster/default/Makefile
for i in $ROSTER_EXTRAS; do
make -C $SOURCE_DIR/roster $i.jisp
cp $SOURCE_DIR/roster/$i.jisp $TARGET_DIR/roster
done
################################################################################
# System iconsets
echo '*** Updating System iconsets ***'
#cp -R $SOURCE_DIR/system/$SYSTEM_DEFAULT/* $TARGET_DIR/system/default
rm -f $TARGET_DIR/system/default/Makefile
for i in $SYSTEM_EXTRAS; do
make -C $SOURCE_DIR/system $i.jisp
cp $SOURCE_DIR/system/$i.jisp $TARGET_DIR/system
done