       ln -s $f "$WINEPREFIX"
     fi
   done
+
+  # Convert the directories into a format that windows like.
+  local windirs=
+  local dir
+  for dir in $dirs
+  do
+    test ! -d "$dir" ||
+      windirs+=";$(winepath -w "$dir")"
+  done
+
   # Add all the added path to the Path variable in user.reg config
   # file.  That idiotic file may have multiple "Path=".  Only one
   # will have ';'.

[  (-h|--help)    usage;;
   (-t|--to)      shift; where=$1;;
   (-w|--wrapper) shift; process_wrapper "$1";;
   (*)            add_directory "$1";;
])[

# Print usage

						-*- shell-script -*-
m4_pattern_allow([^URBI_SERVER_FLAGS$])
URBI_INIT()[

# Exit asap.
host=@host@
case $host in
  (*pw32*|*mingw32*);;
  (*) error 0 "nothing to do on $host";;
esac


## --------------------- ##
## Auxiliary functions.  ##
