...
Open this file in a browser. You will need to get two parts of the screen onto raw files by copy-pasting it:
- Create a fresh workig directory ($WORKING_DIR), cd to it.
- Scroll down to the section on the project's compile dependencies (transitive). Grab the table using the mouse, and save the result to a text file. Name the file
pkg-dependencies-raw.txt
. Keep the browser page open, you will need it later. - Scroll down to the project's runtime dependencies. Grab the table using the mouse and save the result to a text file named
runtime-dependencies-raw.txt
.
...
Code Block | ||||
---|---|---|---|---|
| ||||
cd $WORKING_DIR # First, get the new list of dependencies, sorted cat pkg-dependencies-raw.txt | awk '{printf("%s:%s:%s\n", $1, $2, $3);}' | grep -v org.apache.pinot | sort | uniq > /tmp/x1 cat runtime-dependencies-raw.txt | awk '{printf("%s:%s:%s\n", $1, $2, $3);}' | grep -v org.apache.pinot | sort | uniq >> /tmp/x1 sort /tmp/x1 > new-pkg-versions.txt # Now pull out all package version lines from the existing LICENSE-binary file into another file, call it current-pkg-versions.txt.unsorted cp /path/to/existing/source/LICENSE-binary ./LICENSE-binary cp LICENSE-binary current-pkg-versions.txt.unsorted vim current-pkg-versions.txt.unsorted # Now, remove all fluff in the file except for the lines that hold package name and versions. sort current-pkg-versions.txt.unsorted | uniq > current-pkg-versions.txt # Now you can compare (diff) the two files to see which packages have been removed, and which ones have been added. # I use tkdiff, but you can use 'diff -y' or some of the more fancy options of diff that helps you get what you want. tkdiff current-pkg-versions.txt new-pkg-versions.txt |
...