/usr/share/doc/slang-xfig/examples/run.sl is in slang-xfig 0.2.0~.35-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/usr/bin/env slsh
prepend_to_slang_load_path (path_concat (getcwd (), "../../src"));
require ("xfig");
%sldb ("xfig");
_traceback = 1;
private define main ()
{
if (__argc != 2)
{
() = fprintf (stderr, "Usage: ./%s <example.sl>\n",
path_basename (__argv[0]));
exit (1);
}
() = evalfile (path_concat ("./", __argv[1]));
}
main ();
if (is_defined ("slsh_main"))
slsh_main ();
|