We cannot use the script name in the script file since $0 means the first option. Attached patch may be for saving the script name to GPVAL_SCRIPT
to enable us to use the script name in the script as:
set title sprintf("made by %s",GPVAL_SCRIPT)
This feature is proposed on a Japanese BBS for gnuplot.