]> git.madduck.net Git - etc/mutt.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

reuse lbdbq's tmpdir for our temporary stuff
authormartin f. krafft <madduck@madduck.net>
Wed, 24 Apr 2013 14:59:54 +0000 (16:59 +0200)
committermartin f. krafft <madduck@madduck.net>
Wed, 24 Apr 2013 14:59:54 +0000 (16:59 +0200)
.lbdbrc

diff --git a/.lbdbrc b/.lbdbrc
index f169a48efb52c57d67145d01cf56ce24d52411ea..99a6b5b836c2f130aa7555eea4d56f06b713acc5 100644 (file)
--- a/.lbdbrc
+++ b/.lbdbrc
@@ -5,13 +5,9 @@ CONTACTS_DIR=$HOME/contacts
 if [ -d $CONTACTS_DIR ]; then
   METHODS="$METHODS m_vcf"
   VCF_FILES="$TMPDIR/lbdbq.vcf"
 if [ -d $CONTACTS_DIR ]; then
   METHODS="$METHODS m_vcf"
   VCF_FILES="$TMPDIR/lbdbq.vcf"
-
-  VCF_TEMP="$(tempfile -d $TMPDIR -p lbdbq -s .vcf)"
-  cleanup() { rm -f $VCF_TEMP; trap - EXIT; }
-
+  VCF_TEMP="$tmpdir/contacts.vcf"
   for i in $CONTACTS_DIR/*; do case "${i##*/}" in ICE*) continue;; esac; cat "$i"; echo \r; done >| "$VCF_TEMP"
   if ! cmp --quiet "$VCF_FILES" "$VCF_TEMP"; then
     mv "$VCF_TEMP" "$VCF_FILES"
   fi
   for i in $CONTACTS_DIR/*; do case "${i##*/}" in ICE*) continue;; esac; cat "$i"; echo \r; done >| "$VCF_TEMP"
   if ! cmp --quiet "$VCF_FILES" "$VCF_TEMP"; then
     mv "$VCF_TEMP" "$VCF_FILES"
   fi
-  cleanup
 fi
 fi