Skip to content

Instantly share code, notes, and snippets.

@mattjj
Created September 8, 2012 20:10
Show Gist options
  • Save mattjj/3679317 to your computer and use it in GitHub Desktop.
Save mattjj/3679317 to your computer and use it in GitHub Desktop.
arXiv export
#!/bin/bash
usage()
{
echo "usage: ${0##*/} source-path exported-archive-name.tgz"
}
if [ $# -ne 2 ]
then
usage
exit 0
fi
# add all pdf, tex, bbl files to tar archive
tar -czvf $2 $(find $1 ! -wholename '*graffle*' -and \
\( -iname '*.tex' -or -iname '*.pdf' -or -iname '*.bbl' \) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment