File: extraversion

package info (click to toggle)
postgresql-plproxy 2.8-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 672 kB
  • sloc: ansic: 3,712; sql: 1,083; lex: 338; yacc: 171; makefile: 117; sh: 26
file content (11 lines) | stat: -rw-r--r-- 480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,7 @@ EXTSQL = sql/$(EXTENSION)--$(EXTVERSION)
 	sql/plproxy--unpackaged--$(EXTVERSION).sql
 
 # PostgreSQL version
-PGVER = $(shell $(PG_CONFIG) --version | sed 's/PostgreSQL //')
+PGVER = $(shell $(PG_CONFIG) --version | sed -e 's/PostgreSQL //' -e 's/ .*//')
 PGMAJOR = $(shell echo $(PGVER) | cut -d'.' -f1 | sed -r "s/([0-9]+)([^0-9].*)?/\1/")
 PGMINOR = $(shell echo $(PGVER) | cut -d'.' -f2 | sed -r "s/([0-9]+)([^0-9].*)?/\1/")