Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
4058115c
Commit
4058115c
authored
Jun 17, 2011
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LPBUG#779758 - fix missing alpha/beta etc in MSI and ZIP package names.
parent
a0973ba2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
win/cmake/mysql_version.cmake
win/cmake/mysql_version.cmake
+13
-3
win/cmake/package_name.cmake
win/cmake/package_name.cmake
+1
-1
No files found.
win/cmake/mysql_version.cmake
View file @
4058115c
...
...
@@ -25,7 +25,7 @@ MACRO(GET_MYSQL_VERSION)
STRING
(
REGEX MATCH
"[0-9]+
\\
.[0-9]+
\\
.[0-9]+"
VERSION_STRING
"
${
str
}
"
)
IF
(
NOT VERSION_STRING
)
FILE
(
STRINGS configure.in str REGEX
"AC_INIT
\\
("
)
STRING
(
REGEX MATCH
"[0-9]+
\\
.[0-9]+
\\
.[0-9]+[-][a-zA-Z0-9]+"
VERSION_STRING
"
${
str
}
"
)
STRING
(
REGEX MATCH
"[0-9]+
\\
.[0-9]+
\\
.[0-9]+[-][a-zA-Z0-9
-
]+"
VERSION_STRING
"
${
str
}
"
)
IF
(
NOT VERSION_STRING
)
STRING
(
REGEX MATCH
"[0-9]+
\\
.[0-9]+
\\
.[0-9]+"
VERSION_STRING
"
${
str
}
"
)
ENDIF
()
...
...
@@ -34,6 +34,16 @@ MACRO(GET_MYSQL_VERSION)
ENDIF
()
ENDIF
()
SET
(
VERSION_EXTRA
)
#alpha beta gamma delta epsilon, etc
FOREACH
(
suffix alpha beta gamma
)
IF
(
VERSION_STRING MATCHES
"
${
suffix
}
"
)
SET
(
VERSION_EXTRA
"-
${
suffix
}
"
)
ENDIF
()
ENDFOREACH
()
STRING
(
REGEX MATCH
"[0-9]+
\\
.[0-9]+
\\
.[0-9]+[-][a-zA-Z0-9]+"
VERSION_STRING
"
${
str
}
"
)
IF
(
NOT VERSION_STRING
)
MESSAGE
(
FATAL_ERROR
"VERSION_STRING cannot be parsed, please specify -DVERSION_STRING=major.minor.patch-extra"
...
...
@@ -91,9 +101,9 @@ IF(NOT CPACK_PACKAGE_FILE_NAME)
ENDIF
()
IF
(
NOT CPACK_SOURCE_PACKAGE_FILE_NAME
)
SET
(
CPACK_SOURCE_PACKAGE_FILE_NAME
"mariadb-
${
VERSION
}
"
)
SET
(
CPACK_SOURCE_PACKAGE_FILE_NAME
"mariadb-
${
VERSION
_STRING
}${
VERSION_EXTRA
}
"
)
ENDIF
()
SET
(
CPACK_PACKAGE_CONTACT
"MariaDB team <
build@mysql
.com>"
)
SET
(
CPACK_PACKAGE_CONTACT
"MariaDB team <
info@montyprogram
.com>"
)
SET
(
CPACK_PACKAGE_VENDOR
"Monty Program AB"
)
SET
(
CPACK_SOURCE_GENERATOR
"TGZ"
)
INCLUDE
(
cpack_source_ignore_files
)
...
...
win/cmake/package_name.cmake
View file @
4058115c
...
...
@@ -123,7 +123,7 @@ IF(NOT VERSION)
SET
(
PRODUCT_TAG
)
ENDIF
()
SET
(
package_name
"mariadb
${
PRODUCT_TAG
}
-
${
MYSQL_NO_DASH_VERSION
}
-
${
SYSTEM_NAME_AND_PROCESSOR
}
"
)
SET
(
package_name
"mariadb
${
PRODUCT_TAG
}
-
${
MYSQL_NO_DASH_VERSION
}
${
VERSION_EXTRA
}
-
${
SYSTEM_NAME_AND_PROCESSOR
}
"
)
# Sometimes package suffix is added (something like "-icc-glibc23")
IF
(
PACKAGE_SUFFIX
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment