]> git.phdru.name Git - bookmarks_db.git/blob - bkmk-publish
Fix(Robot): Stop splitting and un-splitting URLs
[bookmarks_db.git] / bkmk-publish
1 #! /bin/sh
2 # Publish bookmarks using hotexplode.pl
3 #
4 # This file is a part of Bookmarks database and Internet robot.
5 #
6 # __author__ = "Oleg Broytman <phd@phdru.name>"
7 # __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
8 # __license__ = "GNU GPL"
9
10 umask 077
11 . "`dirname \"$0\"`"/set-path
12
13 STARTDIR="`pwd`"
14 BKMK_FORMAT=NETSCAPE db2bkmk.py -p "Private links" -o bookmarks.html || exit 1
15
16 echo "Splitting bookmarks..."
17 cd $HOME/Internet/WWW/htdocs/phdru.name/Bookmarks &&
18 rm -rf split || exit 1
19
20 mv $STARTDIR/bookmarks.html . &&
21 hotexplode.pl -o split bookmarks.html &&
22 chmod -R a+rX . &&
23
24 cd "$STARTDIR" &&
25 exec rm -f bookmarks_db.pickle