File: get-lsb.sh

package info (click to toggle)
libsystem-info-perl 0.066-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,904 kB
  • sloc: perl: 2,516; sh: 25; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

cd /etc
for CF in `find *[-_][rRvV][eE][lLrR]* \
		issue /etc.defaults/VERSION \
                VERSION release \
                2>/dev/null | sort` ; do

    case $CF in
	/etc.default*)
	    echo "mkdir etc.defaults"
	    echo "cat > $CF <<EOF"
	    cat $CF
	    echo "EOF"
	    ;;
	*)
	    D=`dirname $CF`
	    F=`basename $CF`

	    if [ -d $CF ]; then
		echo "mkdir $F"
	    else
		echo "cat > $CF <<EOF"
		cat $CF
		echo "EOF"
		fi
	    ;;
	esac
    done