VERSION=4.3.1
-EXAMPLE_SHELL=bkmk-add bkmk-add.py bkmk-chk bkmk-koi bkmk-publish bkmk-rsync \
- bkmk-sort bkmk-win bkmk2db check_title.py check_url.py hotexplode.pl \
- koi2win.db mk-distr mz-unescape mz2ns ns-unescape \
- set-real_title.py set-title-list.py
+EXAMPLE_SHELL=bkmk-add bkmk-add.py bkmk-chk bkmk-publish bkmk-rsync \
+ bkmk-sort bkmk2db check_title.py check_url.py hotexplode.pl \
+ mk-distr set-real_title.py set-title-list.py
.PHONY: all
all:
+++ /dev/null
-#! /bin/sh
-
-PATH=$HOME/lib/bookmarks_db:$PATH
-
-
-bkmk2db || exit 1
-
-BKMK_FORMAT=NETSCAPE
-export BKMK_FORMAT
-
-db2bkmk.py || exit 1
-db2bkmk.py -p "Private links" -o public-koi.tmp || exit 1
-
-exit 0
-
-db2bkmk.py -t $HOME/lib/bookmarks_db/koi2win.db -o private-win.tmp || exit 1
-db2bkmk.py -t $HOME/lib/bookmarks_db/koi2win.db -p "Private links" -o public-win.tmp || exit 1
-
-
-replace() {
- sed "s^$2^$3^" $1 > _tmp.$$
- mv _tmp.$$ $1
-}
-
-replace private-win.tmp http://koi.aha.ru/ http://win.aha.ru/
-replace public-win.tmp http://koi.aha.ru/ http://win.aha.ru/
-replace private-win.tmp http://koi.postman.ru/ http://win.postman.ru/
-replace public-win.tmp http://koi.postman.ru/ http://win.postman.ru/
-
-towin < private-win.tmp > bookmark.ht0
-towin < public-win.tmp > bookmark.ht1
-
-exit 0
-
-diff $HOME/.netscape/bookmarks.html bookmarks.html > diff.out
-
-if [ "$1" = "-c" ]; then
- echo -n "Copying to home: "
- cp -p bookmarks.html $HOME/.netscape/bookmarks.html && echo "Ok"
-fi
+++ /dev/null
-#! /bin/sh
-
-umask 077
-PATH=$HOME/lib/bookmarks_db:$PATH
-
-STARTDIR="`pwd`"
-bkmk-koi -c && \
-mv public-koi.tmp bkmk-koi.html && chmod a+r bkmk-koi.html || exit 1
-
-echo "Splitting bookmarks..."
-cd $HOME/Internet/WWW/htdocs/phdru.name/Bookmarks && \
-rm -rf split || exit 1
-
-$HOME/lib/bookmarks_db/hotexplode.pl -o split $STARTDIR/bookmarks.html && \
-cp -p ../../../misc/nopasswd-index.html split/privatelinks/index.html || exit 1
-
-cp -p $STARTDIR/bkmk-koi.html bookmarks.html && chmod -R a+rX . || exit 1
-
-#/usr/local/htdig/bkmk.sh
-
-cd $STARTDIR && \
-exec rm -f header bookmarks.err bookmarks_db.pickle bookmarks_db.flad \
- private-win.tmp public-win.tmp bookmarks.html bookmark.ht0 bookmark.ht1 bkmk-koi.html
-
-#zip -9 bkmk bkmk-koi.html bkmk-win.html && \
-#rm -f bkmk-win.html && \
-#cp -p bookmark.ht1 bkmk-win.html || exit 1
+++ /dev/null
-#! /bin/sh
-
-PATH=$HOME/lib/bookmarks_db:$PATH
-
-mz2ns
-mv bookmarks.html "$HOME/.netscape/bookmarks.html"
-
-exec distribute -r .netscape "$HOME/.netscape/bookmarks.html"
+++ /dev/null
-#! /bin/sh
-
-PATH=$HOME/lib/bookmarks_db:$PATH
-
-if [ ! -f ./bookmark.htm ]; then
- echo Cannot find bookmark.htm, aborted
- exit 1
-fi
-
-
-fromwin < bookmark.htm > bookmarks.html || exit 1
-
-bkmk2db || exit 1
-
-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
-
-db2bkmk.py -t $HOME/lib/bookmarks_db/koi2win.db -r || exit 1
-db2bkmk.py -t $HOME/lib/bookmarks_db/koi2win.db -r -p "Private links" -o public-koi.tmp || exit 1
-
-towin < bookmarks.html > bookmark.ht0
-towin < public-win.tmp > bookmark.ht1
-
-
-#replace() {
-# sed "s^$2^$3^" $1 > _tmp.$$
-# mv _tmp.$$ $1
-#}
-#
-#replace bookmarks.html http://win.postman.ru/ http://koi.postman.ru/
-#replace public-koi.tmp http://win.postman.ru/ http://koi.postman.ru/
-
-#if [ "$1" = "-c" ]; then
-# echo -n "Copying to home: "
-# cp -p bookmarks.html $HOME/.netscape/bookmarks.html && echo "Ok"
-#fi
+++ /dev/null
-#! /bin/sh
-
-. "$HOME/lib/config/mozilla_home"
-sed -e 's/</</g' -e 's/>/>/g' -e 's/&/\&/g' \
- "$mozilla_home/bookmarks.html" >_tmp.$$ && \
-exec mv _tmp.$$ "$mozilla_home/bookmarks.html"
+++ /dev/null
-#! /bin/sh
-
-PATH=$HOME/lib/bookmarks_db:$PATH
-umask 077
-
-bkmk2db || exit 1
-BKMK_FORMAT=NETSCAPE db2bkmk.py || exit 2
-
-sed -e 's/</</g' -e 's/>/>/g' -e 's/"/"/g' -e 's/&/\&/g' \
- bookmarks.html >_tmp.$$ && \
-mv _tmp.$$ bookmarks.html
-
-exec diff $HOME/.netscape/bookmarks.html bookmarks.html > diff.out
+++ /dev/null
-#! /bin/sh
-
-sed -e 's/</</g' -e 's/>/>/g' -e 's/&/\&/g' \
- "$HOME/.netscape/bookmarks.html" >_tmp.$$ && \
-exec mv _tmp.$$ "$HOME/.netscape/bookmarks.html"