Obtain: Difference between revisions

From OSSelot
Jump to navigation Jump to search
(Created initial content)
 
(Re-arranged the page and redirected it to the page with the original content of this page)
Tag: New redirect
 
Line 1: Line 1:
=Obtain disclosure files=
#REDIRECT [[Disclosure_files]]
==Use a shell script to encapsulate the [[Search|search]] Web script in a shell script==
To download the disclosure file that relates to a given package name and version from the <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> Github repository the following shell script can be used:
#!/bin/bash
if test -z "$1" -o -z "$2"
then
  echo "Usage: $0 <package> <version>"
  exit 1
fi
package="$1"
version="$2"
if test `wget -qO - <nowiki>https://www.osselot.org/curated.php?$package</nowiki> | grep version-$version`
then
  wget -qO - <nowiki>https://raw.githubusercontent.com/Open-Source-Compliance/package-analysis/main/analysed-packages/$package/version-$version/$package-$version-OSS-disclosure.txt</nowiki>
fi
The output of this script can then be adapted to the actual file set of the binary software distribution and given to the recipient of the software upon delivery as an important step toward compliance with the license terms. Possible further steps to license compliance are the adaptation of other legal materials such as terms and conditions and, if the license imposes this obligation, the immediate provision or an appropriate written offer to deliver the source code.
 
In the above example of angular in version 15.2.2, if the script is called "getdisclosure" and invoked as
getdisclosure angular 15.2.2
a text is returned that is ready to be used:
<html>
<script src="/scripts/osadl.js">
</script>
<button onclick="showdisclosure(this)">angular/15.2.2 disclosure material</button>
</html>
==Web interface to immediately [[Search|search]] for a given package and provide links to the disclosure documents of found package repositories==
<html>
<h4>Look for other software packages that may have already been curated at <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> and provide links to the related disclosure documents</h4>
 
<input type="text" onkeyup="searchtextkeyup(event, this, 'disclosure');" size="30" /><button onclick="searchOSSelot(this, 'disclosure');">Search for an <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> disclosure document</button><br />
<span style="display: none;"></span>
<br />
 
</html>
 
Material from multiple packages can each be given a title line and then concatenated.

Latest revision as of 14:00, 15 July 2023

Redirect to: