File: elpa-yasnippet-snippets.postrm

package info (click to toggle)
yasnippet-snippets 1.0%2B28.gcd665c9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,040 kB
  • sloc: lisp: 121; sh: 13; ada: 5; makefile: 2; python: 2
file content (21 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

dirs='tuareg-mode scala-mode ruby-mode js-mode'

if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
    for i in $dirs; do
        if [ -f /usr/share/yasnippet-snippets/"$i"/.yas-parents ]; then
            rm /usr/share/yasnippet-snippets/"$i"/.yas-parents
        fi
        if [ -d /usr/share/yasnippet-snippets/"$i" ]; then
            rmdir /usr/share/yasnippet-snippets/"$i"
        fi
    done
fi


#DEBHELPER#

exit 0