#!/bin/sh
#plaintext:  an example template for Velocity by Kyle Davis
#NOTE:  we use echo -en for things that go to Velocity to avoid a blank line in our context menus

version="1.3";
name="Text Document";
authors="Kyle Davis";
about="This is a demo template for Velocity.";
localonly="Yes";
dependancies="gedit|gnp|gvim";
mimetype="text/plain";
defaultfilename="New Text Document.txt";
case $1 in
	--get-info)
		echo -en "$version\n$name\n$authors\n$about\n$localonly\n$mimetype\n$dependancies\n$defaultfilename"
		;;
	--execute|--overide-desired)
		this=$0
		if [ "$1" == "--overide-desired" ]; then
			#if so everything our variables are off by one, and defaultfilename gets changed
			shift;defaultfilename=$1
		fi
		shift;location=$1;
		shift;dep1=$1;
		touch "$location$defaultfilename"
		"$dep1" "$location$defaultfilename" &
		;;
	*)
		echo "This should only be used by Velocity."
		;;
esac
