File: monodoc-sublib-manual.postrm

package info (click to toggle)
sublib 0.9-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,212 kB
  • sloc: cs: 6,558; sh: 3,338; makefile: 39; xml: 5
file content (18 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e

if [ "$1" = "remove" ]; then
	# Remove the node entry
	grep -v sublib /usr/lib/monodoc/monodoc.xml \
	           > /usr/lib/monodoc/monodoc.xml.new
	mv /usr/lib/monodoc/monodoc.xml.new \
	   /usr/lib/monodoc/monodoc.xml

	# Rebuild the index
        if which monodoc >/dev/null 2>&1; then
		echo "generating monodoc search index..."
		monodoc --make-index > /dev/null
	fi
fi

#DEBHELPER#