File: install-rc

package info (click to toggle)
rescue 1.9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 608 kB
  • ctags: 8
  • sloc: sh: 220; makefile: 23
file content (15 lines) | stat: -rwxr-xr-x 276 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh -e

lib="debian/$1/lib"

install -d "$lib/$2"

cp -r "$2"/* "$lib/$2"

if [ -f "$lib/$2/_numbers" ]; then
	numbers="$(cat "$lib/$2/_numbers")"
	rm "$lib/$2/_numbers"
	echo "$numbers" | while read number name; do
		mv "$lib/$2/$name" "$lib/$2/$number$name"
	done
fi