2 # ---------------------------------------------------------------------------
3 # Multi-Phasic Applications: SquirrelJME
4 # Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 # Copyright (C) Multi-Phasic Applications <multiphasicapps.net>
6 # ---------------------------------------------------------------------------
7 # SquirrelJME is under the GNU General Public License v3, or later.
8 # See license.mkd for licensing and copyright information.
9 # ---------------------------------------------------------------------------
10 # DESCRIPTION: Creates a UUID.
15 # Directory of this script
16 __exedir
="$(dirname -- "$0")"
19 if which uuidgen
2>&1 > /dev
/null
24 elif which uuid
2>&1 > /dev
/null
28 # Otherwise make something up, use random data source
30 __num
="$("$__exedir/random.sh
" 16)"
32 sed 's/\(.\{8\}\)\(....\)\(....\)\(....\)\(.\{12\}\)/\1-\2-\3-\4-\5/g'