2 # This script sets up the quilt directory and patches the package
6 # if the .pc directory already exists, then we will boldy assume
7 # that quilt has been previously applied. Aggressively restore the tree
10 if [ -d $DIR/.pc
]; then
11 pushd $DIR > /dev
/null
12 quilt pop
-qaf > /dev
/null
2>&1
17 echo "# $DIR quilt series" > $DIR/patches
/series
19 # If there are no patches to apply, fail cleanly
25 # Sometimes the patch order matches. In that case, we can pass the entire patch subdirectory
26 # to this script as the second argument, and we'll copy it into $DIR/patches/
28 cp -pr $1/* $DIR/patches
/
32 while [ $# -gt 0 ]; do
33 echo `basename $1` >> $DIR/patches
/series