File: calibre.prerm

package info (click to toggle)
calibre 5.12.0%2Bdfsg-1%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 391,928 kB
  • sloc: python: 402,208; ansic: 77,519; javascript: 56,085; cpp: 14,321; xml: 1,749; sh: 828; sql: 629; objc: 456; makefile: 54; sed: 3
file content (12 lines) | stat: -rw-r--r-- 317 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -eu

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

#DEBHELPER#