Skip to content

Commit 2d5a334

Browse files
committed
Allow to use custom Gemfile
1 parent 88e09e4 commit 2d5a334

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

configure.ac

+6-3
Original file line numberDiff line numberDiff line change
@@ -382,12 +382,15 @@ AC_SUBST([PCSD_BUNDLED_DIR_ROOT_LOCAL])
382382
AC_SUBST([PCSD_BUNDLED_DIR_LOCAL])
383383
AC_SUBST([PCSD_BUNDLED_CACHE_DIR])
384384

385-
rm -rf Gemfile Gemfile.lock
386-
echo "source 'https://rubygems.org'" > Gemfile
387-
echo "" >> Gemfile
385+
rm -rf Gemfile.lock
386+
if ! test -e Gemfile; then
387+
echo "source 'https://rubygems.org'" > Gemfile
388+
echo "" >> Gemfile
389+
fi
388390

389391
# PCS_BUNDLE_GEM([module])
390392
AC_DEFUN([PCS_BUNDLE_GEM], [
393+
grep "$1" Gemfile || echo "gem '$1'" >> Gemfile
391394
echo "gem '$1'" >> Gemfile
392395
if test "x$cache_only" = "xyes"; then
393396
src=`ls $PCSD_BUNDLED_CACHE_DIR/$1-*`

0 commit comments

Comments
 (0)