Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gap.sh should respect the GAP_DIR environment var #2465

Merged
merged 2 commits into from
May 18, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions cnf/compat/gap.sh.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/sh

GAPDIR=$(cd "@abs_top_srcdir@" && pwd)
exec "@abs_top_builddir@/gap" -l "$GAPDIR" "$@"
GAP_EXE=$GAP_DIR
if [ "x$GAP_DIR" = "x" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the extra space after ;

GAP_DIR=$(cd "@abs_top_srcdir@" && pwd)
GAP_EXE=@abs_top_builddir@
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please indent the two preceding lines (either with two or four spaces each)

fi

exec "$GAP_EXE/gap" -l "$GAP_DIR" "$@"