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.

19 lines
710 B

#!/bin/bash -ex
./configure --prefix=/ --docdir=/ --with-latexdir=/
make all
file=$(sed -n 's/AC_INIT(\[\(.*\)\], \[\(.*\)\], .*/\1/p'
version=$(sed -n 's/AC_INIT(\[\(.*\)\], \[\(.*\)\], .*/\2/p'
DESTDIR=$(pwd)/${file} make install
tar czf ${file}-${version}-ctan.tar.gz ${file}
DESTDIR=$(pwd)/${file} make uninstall maintainer-clean
for d in $(sed -n 's/SUBDIRS *= *//p'; do
rmdir ${file}/${d}
rmdir ${file}
set +x
echo "====================================================================="
echo "File is ready for CTAN upload:"
echo "${file}-${version}-ctan.tar.gz"
echo "====================================================================="