File: uninstall

package info (click to toggle)
cmus 2.2.0-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,196 kB
  • ctags: 2,714
  • sloc: ansic: 24,078; sh: 1,024; makefile: 209; python: 26
file content (12 lines) | stat: -rwxr-xr-x 193 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

test -f "$INSTALL_LOG" || exit 0

sort "$INSTALL_LOG" | uniq | \
while read file
do
	echo "RM $file"
	rm -f "$file"
	rmdir -p "`dirname $file`" 2>/dev/null
done
rm -f "$INSTALL_LOG"