LaTeX Template for Business- / Visiting Cards with vCard in a QR-Code.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
710 B

  1. #!/bin/bash -ex
  2. ./autogen.sh
  3. ./configure --prefix=/ --docdir=/ --with-latexdir=/
  4. make all
  5. file=$(sed -n 's/AC_INIT(\[\(.*\)\], \[\(.*\)\], .*/\1/p' configure.ac)
  6. version=$(sed -n 's/AC_INIT(\[\(.*\)\], \[\(.*\)\], .*/\2/p' configure.ac)
  7. DESTDIR=$(pwd)/${file} make install
  8. tar czf ${file}-${version}-ctan.tar.gz ${file}
  9. DESTDIR=$(pwd)/${file} make uninstall maintainer-clean
  10. for d in $(sed -n 's/SUBDIRS *= *//p' makefile.am); do
  11. rmdir ${file}/${d}
  12. done
  13. rmdir ${file}
  14. set +x
  15. echo "====================================================================="
  16. echo "File is ready for CTAN upload:"
  17. echo "${file}-${version}-ctan.tar.gz"
  18. echo "====================================================================="