develooper Front page | perl.perl1.porters | Postings from December 2007

[PATCH] make bin and man directories before trying to install

Thread Next
From:
Michael G Schwern
Date:
December 18, 2007 02:52
Subject:
[PATCH] make bin and man directories before trying to install
Message ID:
4767A63B.5090503@pobox.com
"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"


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About