[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] pushd $SUBDIR for apatch and rpatch?
From: |
Joe Green |
Subject: |
[Quilt-dev] pushd $SUBDIR for apatch and rpatch? |
Date: |
Mon, 09 Aug 2004 11:43:22 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 |
Speaking of $SUBDIR, the attached patch shows some recent changes in CVS
that look a bit odd. $SUBDIR is pushd while executing apatch and rpatch
from push and pop respectively. What is this supposed to do?
Most of the code now assumes that it runs in the quilt root, and uses
$SUBDIR only as needed. This seems like a nice, clean model.
--
Joe Green <address@hidden>
MontaVista Software, Inc.
diff -u quilt-10JUL2004/quilt/pop.in quilt-07AUG2004/quilt/pop.in
--- quilt-10JUL2004/quilt/pop.in 2004-07-09 07:26:34.000000000 +0000
+++ quilt-07AUG2004/quilt/pop.in 2004-07-12 00:07:04.000000000 +0000
@@ -164,10 +164,12 @@
for patch in $patches
do
+ [ -n "$SUBDIR" ] && pushd $SUBDIR > /dev/null
if ! @SCRIPTS@/rpatch $rpatch_options $patch
then
exit 1
fi
+ [ -n "$SUBDIR" ] && popd > /dev/null
if [ -n "$interrupted" ]
then
printf $"Interrupted by user\n" >&2
diff -u quilt-10JUL2004/quilt/push.in quilt-07AUG2004/quilt/push.in
--- quilt-10JUL2004/quilt/push.in 2004-07-09 07:26:34.000000000 +0000
+++ quilt-07AUG2004/quilt/push.in 2004-07-17 01:21:36.000000000 +0000
@@ -200,10 +201,12 @@
create_db
for patch in $patches
do
+ [ -n "$SUBDIR" ] && pushd $SUBDIR > /dev/null
if ! @SCRIPTS@/apatch $apatch_options $patch
then
exit 1
fi
+ [ -n "$SUBDIR" ] && popd > /dev/null
if [ -n "$interrupted" ]
then
printf $"Interrupted by user\n" >&2
diff -u quilt-10JUL2004/scripts/patchfns.in quilt-07AUG2004/scripts/patchfns.in
- [Quilt-dev] pushd $SUBDIR for apatch and rpatch?,
Joe Green <=