DIST=/project/web/extra/m17n-lib/mim-js/
-FILES=index.html latn-post.js mim.js th-kesmanee.js
+FILES=index.html index2.html test.html imlist.xml xex.js mim.js xex2.js mim2.js loadxml.html /usr/local/work/m17n-db-xml/MIM/*.mimx
upload:
+ @updated=""; \
for f in ${FILES}; do \
- if [ $$f -nt ${DIST}/$$f ] ; then \
+ base=`basename $$f`; \
+ if [ ! -f "${DIST}/$$base" ] ; then \
echo $$f; \
cp $$f ${DIST}; \
+ updated="1"; \
+ elif [ "$$f" -nt "${DIST}/$$base" ] ; then \
+ echo $$f; \
+ cp $$f ${DIST}; \
+ updated="1"; \
fi; \
- done
- cd /project/web/source/m17n-lib; make
+ done; \
+ if [ -n "$$updated" ] ; then \
+ cd /project/web/source/m17n-lib; make; \
+ fi