#!/bin/csh -f
#
# Fixes the problem with the Bluejay script not finding library files on Linux

# Check if the Bluejay script exists 
if (! -e Bluejay) then
	set colon = :
	echo "$0:t$colon Bluejay not found in the current directory."
	exit
endif

# Turn the problematic export command into a comment
sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" Bluejay > tmp.bin
mv tmp.bin Bluejay

# Make it executable
chmod +x Bluejay
