install:
	@echo "TCFS utils installation script"
	@echo "------------------------------"
	@echo -n "Moving old lsattr, chattr and mont ..."
	@cp `which lsattr` `which lsattr`.tcfsorig 
	@echo -n ".."
	@cp `which chattr` `which chattr`.tcfsorig
	@echo -n ".."
	@cp `which mount` `which mount`.tcfsorig 
	@echo done
	@echo -n "Installing new utilities ..."
	@cp lsattr `which lsattr`
	@echo -n ".."
	@cp chattr `which chattr`
	@echo -n ".."
	@cp mount `which mount` 
	@echo done 
	@cp tcfslogin /usr/bin/tcfslogin 
	@cp tcfslogout /usr/bin/tcfslogout
	@cp tcfsgenkey /usr/sbin/tcfsgenkey
	@echo "---------------------"
	@echo "Installation Complete"
uninstall:
	@echo "TCFS utils uninstall script"
	@echo "---------------------------"
	@echo -n "Restoring old lsattr, chattr and mount ..."
	@cp `which lsattr.tcfsorig` `which lsattr`
	@echo -n ".."
	@cp `which chattr.tcfsorig` `which chattr`
	@echo -n ".."
	@cp `which mount.tcfsorig` `which mount`
	@echo done
	@rm `which tcfsgenkey`
	@rm `which tcfslogin`
	@rm `which tcfslogout`	
	@echo "TCFS removed"
