updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / geda-font-cyrillic / install.geda-font-cyrillic
blobddca24a7c7f9052071d4aefb7c1e4931cf881d54
1 # This is a default template for a post-install scriptlet.  You can
2 # remove any functions you don't need (and this header).
4 # arg 1:  the new package version
5 pre_install() {
6   /bin/true
9 # arg 1:  the new package version
10 post_install() {
12         tst=`cat /usr/share/gEDA/system-gafrc | grep 'gEDA/cyrillicrc'`
13         if [ x"$tst" = x"" ]; then
14                 cp /usr/share/gEDA/system-gafrc /usr/share/gEDA/system-gafrc.without_cyrillic
15                 echo '(load "/usr/share/gEDA/cyrillicrc")' >> /usr/share/gEDA/system-gafrc
16         fi
20 # arg 1:  the new package version
21 # arg 2:  the old package version
22 pre_upgrade() {
23   /bin/true
26 # arg 1:  the new package version
27 # arg 2:  the old package version
28 post_upgrade() {
29   /bin/true
32 # arg 1:  the old package version
33 pre_remove() {
35         if [ -e /usr/share/gEDA/system-gafrc.without_cyrillic ]; then
36                 mv /usr/share/gEDA/system-gafrc.without_cyrillic /usr/share/gEDA/system-gafrc
37         fi
41 # arg 1:  the old package version
42 post_remove() {
43   /bin/true
46 op=$1
47 shift
48 $op $*