[PATCH] make bin and man directories before trying to install
[email protected] (Michael G Schwern) Tue, 18 Dec 2007 02:51:39 -0800
| Newsgroups | perl.perl1.porters |
|---|---|
| Message-ID | <[email protected]> |
"make install" does not make the install directories before trying to copy to
them. This patch fixes that.
--- Makefile.SH (revision 41166)
+++ Makefile.SH (revision 41167)
@@ -119,6 +119,7 @@
install: perl perl.man
# won't work with csh
export PATH || exit 1
+ - ./makedir $(bin)
- mv $(bin)/perl $(bin)/perl.old
- if test `pwd` != $(bin); then cp $(public) $(bin); fi
cd $(bin); \
@@ -127,8 +128,7 @@
done
- test $(bin) = /bin || rm -f /bin/perl
- test $(bin) = /bin || ln -s $(bin)/perl /bin || cp $(bin)/perl /bin
-# chmod 755 makedir
-# - makedir `filexp $(lib)`
+# - ./makedir `filexp $(lib)`
# - \
#if test `pwd` != `filexp $(lib)`; then \
#cp $(private) `filexp $(lib)`; \
@@ -139,6 +139,7 @@
#done
- if test `pwd` != $(mansrc); then \
for page in $(manpages); do \
+./makedir $(mansrc); \
cp $$page $(mansrc)/`basename $$page .man`.$(manext); \
done; \
fi
--
You know what the chain of command is? It's the chain I go get and beat you
with 'til you understand who's in ruttin' command here.
-- Jayne Cobb, "Firefly"