Ensure correct NetBSD sources checkout
Previously, under some circumstances, the make command could yield netbsdsrc in other directories than the source directory, as expected. This patch fixes this behaviour, by first changing to the expected directory, and only at the end going back to the original directory.
This commit is contained in:
parent
7faf801d1f
commit
73817adec0
1 changed files with 6 additions and 3 deletions
|
@ -111,15 +111,18 @@ install:
|
||||||
# download and update NetBSD reference sources.
|
# download and update NetBSD reference sources.
|
||||||
nbsd_fetch:
|
nbsd_fetch:
|
||||||
export CVS_RSH=ssh; \
|
export CVS_RSH=ssh; \
|
||||||
|
export OLDPWD=`pwd`; \
|
||||||
echo "retrieving hierarchies from ${NBSD_CVSROOT}"; \
|
echo "retrieving hierarchies from ${NBSD_CVSROOT}"; \
|
||||||
IFS=,; \
|
IFS=,; \
|
||||||
cat nbsd_ports | grep -v '^#' | while read port ; \
|
cd ..; \
|
||||||
|
cat releasetools/nbsd_ports | grep -v '^#' | while read port ; \
|
||||||
do set $$port; \
|
do set $$port; \
|
||||||
date=$$1; minixpath=$$2; origpath=$$3; \
|
date=$$1; minixpath=$$2; origpath=$$3; \
|
||||||
if [ $$# -lt 3 ]; then origpath=$$2; fi; \
|
if [ $$# -lt 3 ]; then origpath=$$2; fi; \
|
||||||
echo "retrieving $$origpath .."; \
|
echo "retrieving $$origpath .."; \
|
||||||
cd .. && cvs -q -d ${NBSD_CVSROOT} co -N -D "$$date UTC" -d nbsdsrc "src/$$origpath" ; \
|
cvs -q -d ${NBSD_CVSROOT} co -N -D "$$date UTC" -d nbsdsrc "src/$$origpath" ; \
|
||||||
done
|
done; \
|
||||||
|
cd $${OLDPWD};
|
||||||
|
|
||||||
nbsd_diff:
|
nbsd_diff:
|
||||||
find .. -name minix-port.patch | xargs rm
|
find .. -name minix-port.patch | xargs rm
|
||||||
|
|
Loading…
Reference in a new issue