Skip to content

Commit

Permalink
Issue #138: WSL updates
Browse files Browse the repository at this point in the history
  * Autotools GPG improvements
  * xdg-configure improvements

Signed-off-by: Mike Detwiler <[email protected]>
  • Loading branch information
detwiler committed Jul 10, 2024
1 parent a53648a commit 138f137
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
18 changes: 10 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,16 @@ AC_ARG_VAR([CURL], [curl program])
AC_CHECK_PROGS([CURL], [curl], [no])
AM_CONDITIONAL([HAVE_CURL], [test "x$CURL" != xno])

## gpg ##

AC_ARG_VAR([GPG], [gpg program])
AC_CHECK_PROGS([GPG], [gpg2 gpg], [gpg])
AM_CONDITIONAL([HAVE_GPG], [test "x$GPG" != x])

# gpg2 #
AM_CONDITIONAL([HAVE_GPG2], [test "x$GPG" = xgpg2])
AM_COND_IF([HAVE_GPG2], [AC_CONFIG_FILES([data/gnupg/bashrc.d/gpg2.sh])])

## git ##

AC_ARG_VAR([GIT], [git program])
Expand Down Expand Up @@ -263,14 +273,6 @@ QH_VAR_ENSURE([GOMODCACHE],
[path to Go module cache],
["\$(XDG_CACHE_HOME)/go/mod"])

## gpg ##

# gpg2 #
AC_ARG_VAR([GPG], [gpg program])
AC_CHECK_PROGS([GPG], [gpg2 gpg], [gpg])
AM_CONDITIONAL([HAVE_GPG2], [test "x$GPG" = xgpg2])
AM_COND_IF([HAVE_GPG2], [AC_CONFIG_FILES([data/gnupg/bashrc.d/gpg2.sh])])

## grep ##

AC_ARG_VAR([EGREP], [path to egrep])
Expand Down
2 changes: 1 addition & 1 deletion data/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if HAVE_GNULIB_REFDIR
SUBDIRS += gnulib
endif

if HAVE_GPG2
if HAVE_GPG
SUBDIRS += gnupg
endif

Expand Down
5 changes: 3 additions & 2 deletions xdg-configure
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ else
fi

env --ignore-environment \
HOME=$HOME \
PATH=$PATH \
HOME="$HOME" \
PATH="$PATH" \
TERM="$TERM" \
./configure \
--prefix="$prefix" \
--sysconfdir="$sysconfdir" \
Expand Down

0 comments on commit 138f137

Please sign in to comment.