3 # this script rebuilds the bookmarks files. it requires the variables:
4 # WEBBED_SITES: points at the root of the web hierarchy.
6 export GRUNTOSE_DIR=$WEBBED_SITES/gruntose.com
8 rootname=$HOME/generated
12 moz_add=_moz_bookmarks
14 newmarx=${rootname}_links.csv
15 genlinx=$rootname$norm_add$suffix
16 genlinx_js=$rootname$js_add$suffix
17 genlinx_moz=$rootname$moz_add$suffix
19 if [ -f $genlinx ]; then rm $genlinx; fi
20 if [ -f $newmarx ]; then rm $newmarx; fi
21 if [ -f $genlinx_js ]; then rm $genlinx_js; fi
22 if [ -f $genlinx_moz ]; then rm $genlinx_moz; fi
24 $RUNTIME_PATH/binaries/marks_sorter -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -o $newmarx
26 echo error during sorting of the bookmarks.
30 $RUNTIME_PATH/binaries/marks_maker -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -t $GRUNTOSE_DIR/Info/Twain/marks_template.html -o $genlinx -s human
32 echo error during creation of the normal web page of bookmarks.
36 $RUNTIME_PATH/binaries/marks_maker -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -t $GRUNTOSE_DIR/Info/Twain/marks_template.html -o $genlinx_moz -s mozilla
38 echo error during creation of the mozilla format page of bookmarks.
42 $RUNTIME_PATH/binaries/js_marks_maker -i $GRUNTOSE_DIR/Info/Twain/links_db.csv -t $GRUNTOSE_DIR/Info/Twain/js_template.html -o $genlinx_js
44 echo error during creation of the javascript bookmark page.
48 \mv -f $genlinx $genlinx_moz $genlinx_js $GRUNTOSE_DIR/Info/Twain