Bash interprets any number with leading zero as an octal instead of
decimal, so make sure it doesn't happen if any version number has a
leading zero in version input file.
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
Change uname flag for detecting current system architecture, as
the old flag was not reporting proper architecture type on Debian
distribution.
According to uname documentation, the new flag is portable so it
should be supported on all platforms.
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
Proper file extensions help 'copyright header checker' find files
that should contain copyright info. Extensions also clearly indicate
file type, and help to fit in with the file naming convention.
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
For debug symbols packages to build properly, we need to
instruct the compiler to produce debugging information
during the compilation process by adding a proper flag.
Additionally there is no point to create packages with
debug info in normal build, because it may crash the
package creation process if no debug info is found.
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
- do not restrain package build to just one architecture
and allow user to create packages outside of x86_64
- add pckgen option to specify different architecture
to build packages for, instead of the current one
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
This tool translates Open CAS version tag into SHA in git repository.
Example:
$ ./tools/version2sha 21.06.0.0520.master
eaa2f54
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
Separate tools used internally by build system from utilities that are
part of Open CAS installation package.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>