]> git.phdru.name Git - bookmarks_db.git/commitdiff
Work in the current directory instead of $HOME/work.
authorOleg Broytman <phd@phdru.name>
Mon, 2 Jan 2006 20:59:26 +0000 (20:59 +0000)
committerOleg Broytman <phd@phdru.name>
Mon, 2 Jan 2006 20:59:26 +0000 (20:59 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@60 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

bkmk-rsync
bkmk-set

index 08835d734138b10f87f9ddff1778cba44311d78e..2de2b30da8981ce0d49d315ab75dbe650362195e 100755 (executable)
@@ -2,7 +2,6 @@
 
 PATH=$HOME/lib/bookmarks_db:$PATH
 
-cd "$HOME/work"
 mz2ns
 mv bookmarks.html "$HOME/.netscape/bookmarks.html"
 
index 8d974977ab92e91a1e64998720d462999199364f..f64ea3c8a00fa568acf693cb27a675e422d4f46f 100755 (executable)
--- a/bkmk-set
+++ b/bkmk-set
@@ -3,7 +3,7 @@
 umask 077
 PATH=$HOME/lib/bookmarks_db:$PATH
 
-cd $HOME/work && \
+STARTDIR="`pwd`"
 bkmk-koi -c && \
 mv public-koi.tmp bkmk-koi.html && chmod a+r bkmk-koi.html || exit 1
 
@@ -11,14 +11,14 @@ echo "Splitting bookmarks..."
 cd $HOME/Internet/WWW/htdocs/phd.pp.ru/Bookmarks && \
 rm -rf split || exit 1
 
-$HOME/lib/bookmarks_db/hotexplode.pl -o split $HOME/work/bookmarks.html && \
+$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 $HOME/work/bkmk-koi.html bookmarks.html && chmod -R a+rX . || exit 1
+cp -p $STARTDIR/bkmk-koi.html bookmarks.html && chmod -R a+rX . || exit 1
 
 #/usr/local/htdig/bkmk.sh
 
-cd $HOME/work && \
+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