]> matita.cs.unibo.it Git - helm.git/commitdiff
styles directory creation now works even if stylesheets and meta_stylesheets
authorFerruccio Guidi <ferruccio.guidi@unibo.it>
Fri, 20 Jun 2003 17:57:50 +0000 (17:57 +0000)
committerFerruccio Guidi <ferruccio.guidi@unibo.it>
Fri, 20 Jun 2003 17:57:50 +0000 (17:57 +0000)
are symbolic links (as in my case)

helm/gTopLevel/Makefile

index f7738091b9b8224d4f802a24a4ebe71377f42c3f..f5bc93d9f33bafc67c62b6854b7a62e75f728de6 100644 (file)
@@ -39,11 +39,10 @@ styles:
        @if [ -d stylesheets -a -d meta_stylesheets ] ; then echo -e "* stylesheets and metastylesheets found:                              *\\n* I will create the request hyperlinks in styles                      *" ; else echo -e "* stylesheets or meta_stylesheets not found:                          *\\n* you should check-out the two directories from the MoWGLI repository *" ; exit -1 ; fi
        @echo "***********************************************************************"
        mkdir styles
-       (cd stylesheets && for i in *.xsl ; do ln -s ../stylesheets/$$i ../styles/$$i ; done)
-       (cd stylesheets/generated && for i in *.xsl ; do ln -s ../stylesheets/generated/$$i ../../styles/$$i ; done)
-       rm styles/rootcontent.xsl
-       ln -s ../rootcontent.xsl styles/rootcontent.xsl
-
+       (cd styles && for i in ../stylesheets/*.xsl ; do ln -s $$i; done)
+       (cd styles && for i in ../stylesheets/generated/*.xsl ; do ln -s $$i; done)
+       (cd styles && rm rootcontent.xsl && ln -s ../rootcontent.xsl)
+       
 depend:
        $(OCAMLDEP) $(DEPOBJS) > .depend