File: klayout.prerm

package info (click to toggle)
klayout 0.30.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292,204 kB
  • sloc: cpp: 2,068,428; ruby: 47,823; xml: 26,924; python: 14,404; sh: 1,812; tcl: 212; perl: 170; makefile: 112; ansic: 42
file content (12 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

#DEBHELPER#

if which py3clean >/dev/null 2>&1; then
    py3clean /usr/lib/klayout/pymod
else
    dpkg -L python3-spur | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'
    find /usr/lib/klayout/pymod/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
fi