#!/bin/bash

#	------------------------------------------------------------------
#	NOTE: This will build a languageONE CommandLine program only - 
#	for languageONE programs that are used as a backend to a GUI
#	run the C++build script in the fltk folder 
#	------------------------------------------------------------------
#	Copy languageONE file into languageONE directory
#	Run it thru the reWriter
#	Assemble it
#	link in
#	move the execable into the _Application folder
#	move the .ASM into the _Application folder
#	remove the workfiles
#	------------------------------------------------------------------
if cp examples/$1.ONE .; then
	if bin/languageONE $1; then
		echo reWrite process has completed
	else
		echo Failed to retrieve $1.ONE
	fi
fi