#!/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
#	------------------------------------------------------------------
cd /home/roger/_dev1/source/languageONE
cp examples/$1.ONE .
if bin/languageONE $1; then
	echo reWrite process completed
	if ./assemble $1; then
		if ./link $1; then
			mv $1 _Application
			mv $1.ASM _Application
			rm $1.*
		fi
	fi
fi



