bkmk2db || exit 1
-bkmk-add.py "$@" && \
-db2bkmk.py && \
+bkmk-add.py "$@" &&
+db2bkmk.py &&
exec touch bookmarks_db.pickle # to make it more recent
PATH="$HOME/lib/bookmarks_db:$PATH"
-ln -s "$HOME"/Desktop/bookmarks-*.json bookmarks_db.json && \
-BKMK_STORAGE=json convert_st.py pickle && \
-rm bookmarks_db.json && \
+ln -s "$HOME"/Desktop/bookmarks-*.json bookmarks_db.json &&
+BKMK_STORAGE=json convert_st.py pickle &&
+rm bookmarks_db.json &&
-check_urls.py && \
-echo '' && \
-check_urls.py -e && \
+check_urls.py &&
+echo '' &&
+check_urls.py -e &&
# Report results
-BKMK_WRITER=flad db2bkmk.py && \
-check_dups.py -s -l bookmarks.err >/dev/null && \
-check_title.py > check_title.txt && \
-bkmk-sort && \
+BKMK_WRITER=flad db2bkmk.py &&
+check_dups.py -s -l bookmarks.err >/dev/null &&
+check_title.py > check_title.txt &&
+bkmk-sort &&
# Write results to the bookmarks files
-convert_st.py json && \
+convert_st.py json &&
exec db2bkmk.py
BKMK_FORMAT=NETSCAPE db2bkmk.py -p "Private links" -o bookmarks.html || exit 1
echo "Splitting bookmarks..."
-cd $HOME/Internet/WWW/htdocs/phdru.name/public_html/Bookmarks && \
+cd $HOME/Internet/WWW/htdocs/phdru.name/public_html/Bookmarks &&
rm -rf split || exit 1
-mv $STARTDIR/bookmarks.html . && \
-hotexplode.pl -o split bookmarks.html && \
-chmod -R a+rX . && \
+mv $STARTDIR/bookmarks.html . &&
+hotexplode.pl -o split bookmarks.html &&
+chmod -R a+rX . &&
-cd "$STARTDIR" && \
+cd "$STARTDIR" &&
exec rm -f bookmarks_db.pickle
bkmk2db || exit 1
-BKMK_WRITER=flad sort_db.py -a && \
-BKMK_WRITER=flad sort_db.py -v && \
-BKMK_WRITER=flad sort_db.py -m && \
-BKMK_WRITER=flad sort_db.py -z && \
+BKMK_WRITER=flad sort_db.py -a &&
+BKMK_WRITER=flad sort_db.py -v &&
+BKMK_WRITER=flad sort_db.py -m &&
+BKMK_WRITER=flad sort_db.py -z &&
BKMK_WRITER=flad sort_db.py -t || exit 1
umask 022
-prog_dir="`pwd`" && \
+prog_dir="`pwd`" &&
-cd "$HOME/tmp" && \
-svn export "$1" bookmarks_db && \
+cd "$HOME/tmp" &&
+svn export "$1" bookmarks_db &&
cp -p "$prog_dir"/BeautifulSoup.py "$prog_dir"/subproc.py \
- "$prog_dir"/hotexplode.pl bookmarks_db && \
-cp -p "$prog_dir"/doc/COPYING bookmarks_db/doc && \
+ "$prog_dir"/hotexplode.pl bookmarks_db &&
+cp -p "$prog_dir"/doc/COPYING bookmarks_db/doc &&
-cd bookmarks_db && make fulldistr && \
+cd bookmarks_db && make fulldistr &&
cd .. && exec rm -rf bookmarks_db
set-title-list.py "$@" || exit 1
-BKMK_WRITER=flad db2bkmk.py && \
-convert_st.py json && \
+BKMK_WRITER=flad db2bkmk.py &&
+convert_st.py json &&
exec db2bkmk.py