#!/bin/bash

if [ "$#" -ne 8 ]; then
	echo $"Usage $0 <pointer file name> <wait pointer file name> <busy pointer file name> <link pointer file name> <unavailable pointer file name> <question pointer file name> <open hand pointer file name> <closed hand pointer file name>"
	exit 1
fi

mkdir cursors 2> /dev/null

xcursorgen $3 cursors/left_ptr_watch
xcursorgen $1 cursors/left_ptr
xcursorgen $2 cursors/watch
xcursorgen $4 cursors/hand2
xcursorgen $5 cursors/circle
xcursorgen $6 cursors/question_arrow
xcursorgen $7 cursors/openhand
xcursorgen $8 cursors/closedhand

cd cursors

while read the_file the_link
do
	ln -fs $the_file $the_link
done < ../links.txt

#ln -fs watch wait
#ln -fs question_arrow 5c6cd98b3f3ebcb1f9c7f1c204630408
#ln -fs cross diamond_cross
#ln -fs dotbox dot_box_mask
#ln -fs fd_double_arrow double_arrow
#ln -fs dotbox icon
#ln -fs question_arrow left_ptr_help
#ln -fs question_arrow help
#ln -fs dotbox target
#ln -fs left_ptr_watch 3ecb610c1bf2410f44200f48c40d3599
#ln -fs left_ptr_watch 08e8e1c95fe2fc01f976f1e063a24ccd
#ln -fs hand2 hand1
#ln -fs hand2 hand
#ln -fs circle crossed_circle
#ln -fs circle 03b6e0fcb3499374a867c041f52298f0
#ln -fs question_arrow d9ce0ab605698f320427677b458ad60b
#ln -fs left_ptr_watch progress
#ln -fs left_ptr default

