diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2004-07-12 00:07:03 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2004-07-12 00:07:03 +0000 |
commit | 963347acfe1a59a28c07bdd9479a8a98266611ac (patch) | |
tree | ab1fd1f543f9b8dc34d81d202cea55c65a2b25c5 /scripts/patchfns.in | |
parent | e7bb642fdbcfa9bb1d7265781f56d89e398f90b9 (diff) | |
download | quilt-963347acfe1a59a28c07bdd9479a8a98266611ac.tar.gz |
- Some more QUILT_PATCHES_PREFIX fixes.
Diffstat (limited to 'scripts/patchfns.in')
-rw-r--r-- | scripts/patchfns.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in index 66755e5..202a114 100644 --- a/scripts/patchfns.in +++ b/scripts/patchfns.in @@ -708,7 +708,7 @@ version_check() { } print_patch() { - echo -n "${QUILT_PATCHES_PREFIX:+$QUILT_PATCHES/}$1" + echo -n "${QUILT_PATCHES_PREFIX:+$SUBDIR_DOWN$QUILT_PATCHES/}$1" } # @@ -724,16 +724,18 @@ print_patch() { # and the base direcory is /usr/src/linux, $SUBDIR is set to # drivers/net/. -unset SUBDIR +unset SUBDIR SUBDIR_DOWN if ! [ -d "$QUILT_PATCHES" ] then basedir=$PWD while [ -n "$basedir" ] do basedir=${basedir%/*} + down=$down../ if [ -d "$basedir/$QUILT_PATCHES" ] then SUBDIR="${PWD#$basedir/}/" + SUBDIR_DOWN=$down if ! cd $basedir/ then echo "Cannot change into parent directory $basedir/" >&2 @@ -742,7 +744,7 @@ then break fi done - unset basedir + unset basedir down fi if [ -n "$QUILT_SERIES" ] |