Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. all: odf odfuserfield.1
  2. txt: odfuserfield.txt
  3. %.1: %.docbook
  4. xmlto man $<
  5. %.txt: %.docbook
  6. xmlto txt $<
  7. clean:
  8. rm -f *.1 *~ *.txt odf userfieldsFilledByPython*
  9. odf:
  10. ln -s ../odf
  11. test: clean odf
  12. @echo =============== output by Python2 =========================
  13. @echo ========= list userfields from ../tests/examples/userfields.odt
  14. @python2 odfuserfield -l ../tests/examples/userfields.odt
  15. @echo ========= injection of values =============================
  16. @python odfuserfield -o userfieldsFilledByPython2.odt \
  17. -s username:jdoe -s firstname:John -s lastname:Doe \
  18. -s "address:10 Downing Street" ../tests/examples/userfields.odt
  19. @echo ========= extraction of values =============================
  20. python odfuserfield -X username -X firstname -X lastname \
  21. -X address userfieldsFilledByPython2.odt
  22. @echo ============================================================
  23. @echo
  24. @echo =============== output by Python3 =========================
  25. @echo ========= list userfields from ../tests/examples/userfields.odt
  26. @python3 odfuserfield -l ../tests/examples/userfields.odt
  27. @echo ========= injection of values =============================
  28. @python odfuserfield -o userfieldsFilledByPython3.odt \
  29. -s username:jdoe -s firstname:John -s lastname:Doe \
  30. -s "address:10 Downing Street" ../tests/examples/userfields.odt
  31. @echo ========= extraction of values =============================
  32. python odfuserfield -X username -X firstname -X lastname \
  33. -X address userfieldsFilledByPython3.odt
  34. @echo ============================================================