DIST=/project/web/extra/m17n-lib/mim-js/
-FILES=index.html latn-post.js mim.js th-kesmanee.js
+FILES=index.html test.html imlist.xml xex.js mim.js /usr/local/work/m17n-db-xml/MIM/*.mimx
upload:
@updated=""; \
for f in ${FILES}; do \
- if [ ! -f ${DIST}/$$f -o $$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; \
if [ -n "$$updated" ] ; then \
- echo $$updated; \
cd /project/web/source/m17n-lib; make; \
fi