~easypeasy-maintainers/easypeasy-project/ubiquity

« back to all changes in this revision

Viewing changes to d-i/source/partman-ext3/debian/install-rc

  • Committer: Jon Ramvi
  • Date: 2009-07-10 16:08:35 UTC
  • Revision ID: jon@geteasypeasy.com-20090710160835-ltb4mkc3qg31p0mo
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
# PACKAGE is exported from debian/rules
 
6
partman=debian/${PACKAGE}/lib/partman
 
7
 
 
8
install -d $partman/$1
 
9
 
 
10
cp -r $1/* $partman/$1/
 
11
 
 
12
# Remove any SVN dirs that were copied along
 
13
rm -rf `find $partman/$1/ -name .svn`
 
14
 
 
15
if [ -f $partman/$1/_numbers ]; then
 
16
    numbers=$(cat $partman/$1/_numbers)
 
17
    rm $partman/$1/_numbers
 
18
    echo "$numbers" |
 
19
    while read number name; do
 
20
        set -e
 
21
        mv $partman/$1/$name $partman/$1/${number}${name}
 
22
    done
 
23
fi
 
24