File: in.gcl.postrm

package info (click to toggle)
gcl 2.6.12-47
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 55,420 kB
  • ctags: 111,171
  • sloc: ansic: 177,186; lisp: 154,207; asm: 128,169; sh: 22,274; cpp: 11,923; tcl: 3,181; perl: 2,930; makefile: 2,348; sed: 334; yacc: 226; lex: 95; awk: 30; fortran: 24; csh: 23
file content (20 lines) | stat: -rw-r--r-- 396 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

case "$1" in
    purge)
	    for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist;  do
		rm -f /etc/default/gcl@EXT@$ext
	    done
	    
	    rm -f /etc/default/gcl@EXT@
	    
	    if which ucf >/dev/null; then
		ucf --purge /etc/default/gcl@EXT@
	    fi        
	    if which ucfr >/dev/null; then
		ucfr --purge gcl@EXT@ /etc/default/gcl@EXT@
	    fi       
	    ;;
esac

#DEBHELPER#