File: install-rc

package info (click to toggle)
partman-newworld 11
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 272 kB
  • ctags: 2
  • sloc: sh: 195; makefile: 30
file content (21 lines) | stat: -rwxr-xr-x 364 bytes parent folder | download | duplicates (52)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

PACKAGE=$(dh_listpackages)
partman=debian/${PACKAGE}/lib/partman

install -d $partman/$1

cp -r $1/* $partman/$1/

if [ -f $partman/$1/_numbers ]; then
    numbers=$(cat $partman/$1/_numbers)
    rm $partman/$1/_numbers
    echo "$numbers" |
    while read number name; do
	set -e
	mv $partman/$1/$name $partman/$1/${number}${name}
    done
fi