(release): Exclute directory in usr/html and ja/html to copy to the
[m17n/m17n-docs.git] / Makefile.am
index 1d03d9b..51074fb 100644 (file)
@@ -1,5 +1,5 @@
 # Makefile.am -- Makefile for the m17n library documentation.
-# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
+# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
 #   National Institute of Advanced Industrial Science and Technology (AIST)
 #   Registration Number H15PRO112
 
@@ -387,10 +387,10 @@ WEBDIR = /project/web/extra/m17n-lib
 
 release: dist-tgz
        [ -d ${WEBDIR}/m17n-docs ] || mkdir ${WEBDIR}/m17n-docs
-       [ -d ${WEBDIR}/download ] || mkdir ${WEBDIR}/download
-       cd usr/html; cp * ${WEBDIR}/m17n-docs
+       for f in usr/html/*; do [ -d "$$f" ] || cp "$$f" ${WEBDIR}/m17n-docs; done
        [ -d ${WEBDIR}-ja2/m17n-docs ] || mkdir ${WEBDIR}-ja2/m17n-docs
-       cd ja/html; cp * ${WEBDIR}-ja2/m17n-docs
+       for f in ja/html/*; do [ -d "$$f" ] || cp "$$f" ${WEBDIR}-ja2/m17n-docs; done
+       [ -d ${WEBDIR}/download ] || mkdir ${WEBDIR}/download
        cp ${distdir}.tar.gz ${WEBDIR}/download