#!/bin/bash

#	------------------------------------------------------------------
#	NOTE: This will rebuild languageONE.lib in the languageONE 
#	directory
#	------------------------------------------------------------------
#	copy the .LIB file into languageONE directory
#	assemble it
#	add it languageONE.lib
#	remove the .o file
#	remove the .LIB file
#	list the contents of languageONE.lib
#	------------------------------------------------------------------
cd /home/roger/_dev1/source/languageONE
cp src/$1.LIB .
if _NASM/nasm -f elf64 -F dwarf -w-macro-params -O0 $1.LIB; then
	ar -r lib/languageONE.lib $1.o
	rm $1.o
	rm $1.LIB
	ar -t lib/languageONE.lib
fi
