-
Notifications
You must be signed in to change notification settings - Fork 3
Lsb samples #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Lsb samples #5
Conversation
and the "\fB/etc/foobar-release\fP" file contains: | ||
and the "\fB/etc/os-release\fP" file contains: | ||
|
||
NAME="SLES" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure that we should be branding the example with a specific distribution - the original has been intentionally neutral on this.
@@ -173,7 +173,7 @@ my ($help_text, $version_text) = map { | |||
or die "$this_program: can't get `--$_' info from $ARGV[0]\n" | |||
} qw(help), $opt_version_key; | |||
|
|||
my $date = strftime "%B %Y", localtime; | |||
my $date = strftime "%B %Y", gmtime($ENV{SOURCE_DATE_EPOCH} || time); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 - thanks for this addition!
\fB"/etc/\fIdistrib\fB-release"\fR file. | ||
override information which is parsed from the | ||
\fB"/etc/os-release"\fR file. Since \fB"/etc/os-release"\fR is the new | ||
standard, there is no need anymore to add any of the optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a convention, yes - introduced by the systemd project and now in very wide usage. It's not correct to call it "standard", so in my opinion we might be looking for somewhat different wording here. This is just the manpage for the sample, so perhaps it doesn't matter too much.
fix from https://pagure.io/redhat-lsb