diff options
author | David Runge <dave@sleepmap.de> | 2023-12-03 18:33:16 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2023-12-03 18:33:16 +0100 |
commit | 2f694cefe3d30fe65320941bb5ee77472fff0e2b (patch) | |
tree | 84aa7554b4ea733302a1ef62229dbfa67f50474e /bin/letter | |
parent | 6760e35c003b7a8efd9f3564773e5ff6a73bfe60 (diff) | |
download | dotfiles-2f694cefe3d30fe65320941bb5ee77472fff0e2b.tar.gz dotfiles-2f694cefe3d30fe65320941bb5ee77472fff0e2b.tar.bz2 dotfiles-2f694cefe3d30fe65320941bb5ee77472fff0e2b.tar.xz dotfiles-2f694cefe3d30fe65320941bb5ee77472fff0e2b.zip |
bin: Remove unused scripts
Signed-off-by: David Runge <dave@sleepmap.de>
Diffstat (limited to 'bin/letter')
-rw-r--r-- | bin/letter | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/bin/letter b/bin/letter deleted file mode 100644 index 87e2c34..0000000 --- a/bin/letter +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash -# Create a letter - -# Configuration -template=~/documents/letter_template.tex -dir=~/documents/`date +%Y` -texdir=$dir/tex -editor=/usr/bin/vim -reader=/usr/bin/mupdf - -function mkpdf () { - pdflatex -shell-escape $1.tex - EXT=(aux log) - for i in ${EXT[*]} - do -rm -v $1.$i - done -} - -# Preparation -mkdir -p $dir -mkdir -p $texdir - -named=0 -while [ $named -eq 0 ] -do -read -p "Enter document name: " REPLY - docname=`echo $REPLY | sed 's/\ /_/g'` - docdate="`date +%Y-%m-%d`" - doc=$dir/${docdate}_${docname} - tex=$dir/${docdate}_${docname}.tex - pdf=$dir/${docdate}_${docname}.pdf - if [ -e $pdf ] - then -read -p "Document already exists. Overwrite? (y/N) " REPLY - [ "$REPLY" == "y" ] || continue -fi - -read -p "Create document \"$pdf\"? (Y/n) " REPLY - [ "$REPLY" == "y" -o x"$REPLY" == x ] && named=1 -done - -cd $dir -cp $template $tex - -$editor $tex -mkpdf $doc -$reader $pdf - -finished=0 -while [ $finished -eq 0 ] -do -read -p "Finished editing? (Y/n) " REPLY - if [ "$REPLY" == "y" -o x"$REPLY" == x ] - then -finished=1 - else - $editor $tex - mkpdf $doc - $reader $pdf - fi -done - -read -p "Keep a copy of the .tex file? (Y/n) " REPLY -if [ "$REPLY" == "y" -o x"$REPLY" == x ] -then -mv $tex $texdir -else -rm $tex -fi - |