Permalink
Browse files

add "cd .CURDIR" to all cvs operations-what a mess!

  • Loading branch information...
itojun
itojun committed Aug 26, 1999
1 parent e6250c2 commit d536b60062095bad78a6142ab17f48ad23bb3558
Showing with 13 additions and 10 deletions.
  1. +13 −10 Makefile
View
@@ -1,17 +1,17 @@
TARGET?= netbsd
prepare::
- perl prepare.pl kame ${TARGET}
+ (cd ${.CURDIR}; perl prepare.pl kame ${TARGET})
clean::
- find ${TARGET} -type l -print | perl -nle unlink
+ (cd ${.CURDIR}; find ${TARGET} -type l -print | perl -nle unlink)
# only for developers
bsdi3:
- (set CVSROOT=cvs.kame.net/cvsroot/kame-local; export CVSROOT; cvs -d cvs.kame.net:/cvsroot/kame-local co -d bsdi3 -P kame/bsdi3)
+ (cd ${.CURDIR}; set CVSROOT=cvs.kame.net/cvsroot/kame-local; export CVSROOT; cvs -d cvs.kame.net:/cvsroot/kame-local co -d bsdi3 -P kame/bsdi3)
bsdi4:
- (set CVSROOT=cvs.kame.net/cvsroot/kame-local; export CVSROOT; cvs -d cvs.kame.net:/cvsroot/kame-local co -d bsdi4 -P kame/bsdi4)
+ (cd ${.CURDIR} set CVSROOT=cvs.kame.net/cvsroot/kame-local; export CVSROOT; cvs -d cvs.kame.net:/cvsroot/kame-local co -d bsdi4 -P kame/bsdi4)
DOC= CHANGELOG COPYRIGHT COPYRIGHT.jp IMPLEMENTATION INSTALL \
INSTALL.anoncvs Makefile PORTABILITY VERSION prepare.pl \
@@ -20,28 +20,31 @@ PLAT= freebsd2 freebsd3 kame netbsd openbsd bsdi3 bsdi4
update: update-doc update-plat
update-doc:
- cvs update -d -P ${DOC}
+ (cd ${.CURDIR}; cvs update -d -P ${DOC})
update-plat:
+ (cd ${.CURDIR}; \
for i in kame ${TARGET}; do \
if test -d $$i; then \
(cd $$i; cvs update -d -P); \
fi \
- done
+ done)
update-all: update-doc
+ (cd ${.CURDIR}; \
for i in ${PLAT}; do \
if test -d $$i; then \
(cd $$i; cvs update -d -P); \
fi \
- done
+ done)
# % cvs co kame/Makefile
# % cd kame
# % make TARGET=foo tree
tree:
- $(MAKE) update-doc
+ (cd ${.CURDIR}; \
+ $(MAKE) update-doc; \
if test $(TARGET) = bsdi3 -o $(TARGET) = bsdi4; then \
$(MAKE) $(TARGET); \
else \
cvs update -d -P $(TARGET); \
- fi
- cvs update -d -P kame
+ fi; \
+ cvs update -d -P kame)

0 comments on commit d536b60

Please sign in to comment.