Skip to content

Commit

Permalink
Strip backslashes and semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Sep 24, 2024
1 parent e5b4248 commit 4daf410
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
9 changes: 5 additions & 4 deletions src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ OBJECTS=rfuns.o database.o connection.o statement.o register.o relational.o scan
all: $(SHLIB) strip

strip: $(SHLIB)
@if which strip >/dev/null && which uname >/dev/null && test "`uname`" = "Linux" && test "$$_R_SHLIB_STRIP_" = "true" && test -n "$$R_STRIP_SHARED_LIB"; then \
echo stripping $(SHLIB) \
echo $$R_STRIP_SHARED_LIB $(SHLIB) \
$$R_STRIP_SHARED_LIB $(SHLIB) \
@if which strip >/dev/null && which uname >/dev/null && test "`uname`" = "Linux" && test "$$_R_SHLIB_STRIP_" = "true" && test -n "$$R_STRIP_SHARED_LIB"
then
echo stripping $(SHLIB)
echo $$R_STRIP_SHARED_LIB $(SHLIB)
$$R_STRIP_SHARED_LIB $(SHLIB)
fi

.PHONY: all clean strip
9 changes: 5 additions & 4 deletions src/Makevars.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ PKG_LIBS={{ LINK_FLAGS }}
all: $(SHLIB) strip

strip: $(SHLIB)
@if which strip >/dev/null && which uname >/dev/null && test "`uname`" = "Linux" && test "$$_R_SHLIB_STRIP_" = "true" && test -n "$$R_STRIP_SHARED_LIB"; then \
echo stripping $(SHLIB) \
echo $$R_STRIP_SHARED_LIB $(SHLIB) \
$$R_STRIP_SHARED_LIB $(SHLIB) \
@if which strip >/dev/null && which uname >/dev/null && test "`uname`" = "Linux" && test "$$_R_SHLIB_STRIP_" = "true" && test -n "$$R_STRIP_SHARED_LIB"
then
echo stripping $(SHLIB)
echo $$R_STRIP_SHARED_LIB $(SHLIB)
$$R_STRIP_SHARED_LIB $(SHLIB)
fi

.PHONY: all clean strip
9 changes: 5 additions & 4 deletions src/Makevars.win
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ PKG_LIBS=-lws2_32 -L. -lrstrtmgr
all: $(SHLIB) strip

strip: $(SHLIB)
@if which strip >/dev/null && which uname >/dev/null && test "`uname`" = "Linux" && test "$$_R_SHLIB_STRIP_" = "true" && test -n "$$R_STRIP_SHARED_LIB"; then \
echo stripping $(SHLIB) \
echo $$R_STRIP_SHARED_LIB $(SHLIB) \
$$R_STRIP_SHARED_LIB $(SHLIB) \
@if which strip >/dev/null && which uname >/dev/null && test "`uname`" = "Linux" && test "$$_R_SHLIB_STRIP_" = "true" && test -n "$$R_STRIP_SHARED_LIB"
then
echo stripping $(SHLIB)
echo $$R_STRIP_SHARED_LIB $(SHLIB)
$$R_STRIP_SHARED_LIB $(SHLIB)
fi

.PHONY: all clean strip

0 comments on commit 4daf410

Please sign in to comment.