Skip to content

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

sergiomb2
Copy link

fix from https://pagure.io/redhat-lsb

  • update License
  • make_man_page_reproducible
  • drop the /etc/lsb-release check and update the man pages accordingly

and the "\fB/etc/foobar-release\fP" file contains:
and the "\fB/etc/os-release\fP" file contains:

NAME="SLES"
Copy link
Member

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);
Copy link
Member

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants