From 6e90710dba7238b440aa7c5bb5e465de0fc259ed Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 14 Oct 2007 10:06:51 +0000 Subject: [PATCH] Renamed BKMK_??FORMAT to BKMK_FORMAT. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@96 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Writers/bkmk_whtml.py | 12 ++++-------- bkmk-chk | 2 +- bkmk-koi | 4 ++-- bkmk-win | 4 ++-- mz2ns | 2 +- 5 files changed, 10 insertions(+), 14 deletions(-) diff --git a/Writers/bkmk_whtml.py b/Writers/bkmk_whtml.py index 775d336..7e652d2 100644 --- a/Writers/bkmk_whtml.py +++ b/Writers/bkmk_whtml.py @@ -6,16 +6,12 @@ import os -MZFORMAT = os.environ.has_key("BKMK_MZFORMAT") -if MZFORMAT: - NSFORMAT = False -else: - NSFORMAT = os.environ.has_key("BKMK_NSFORMAT") +BKMK_FORMAT = os.environ.has_key("BKMK_FORMAT") def dump_comment(comment): comment = comment.replace("
\n", "\n") - if NSFORMAT: + if BKMK_FORMAT == "NETSCAPE": comment = comment.replace("\n", "
\n") return comment @@ -39,7 +35,7 @@ class writer_html(Writer): def start_folder(self, f, level): self.outfile.write(ind_s*level + '

%s

\n' % f.name) self._folder(f, level) @@ -48,7 +44,7 @@ class writer_html(Writer): def bookmark(self, b, level): self.outfile.write(ind_s*(level+1) + '
bookmarks.html || exit 1 bkmk2db || exit 1 -BKMK_NSFORMAT=TRUE -export BKMK_NSFORMAT +BKMK_FORMAT=NETSCAPE +export BKMK_FORMAT db2bkmk.py -o private-win.tmp || exit 1 db2bkmk.py -p "Private links" -o public-win.tmp || exit 1 diff --git a/mz2ns b/mz2ns index f6de090..451c96e 100755 --- a/mz2ns +++ b/mz2ns @@ -4,7 +4,7 @@ PATH=$HOME/lib/bookmarks_db:$PATH bkmk2db || exit 1 umask 077 -BKMK_NSFORMAT=TRUE db2bkmk.py || exit 2 +BKMK_FORMAT=NETSCAPE db2bkmk.py || exit 2 sed -e 's/<//g' -e 's/"/"/g' -e 's/&/\&/g' \ bookmarks.html >_tmp.$$ && \ -- 2.39.5