Skip to content

Commit

Permalink
compute deps with version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
tp-Sebastian-Bogan committed May 18, 2020
1 parent 72a9ef6 commit b3e88ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

DEPS=( $(ldd ./goyammer | grep -P -o "(?<=> ).+(?= \(0x)" | xargs dpkg -S | awk -F ':' '{print $1}' | sort | uniq) )

for element in "${DEPS[@]}"
do
VERSION=$(aptitude show $element |grep Version | gawk '{print $2}' | grep -Po '^(?:([0-9]+:))?[0-9]+\.[0-9]+')
echo "$element (>= ${VERSION})"
done

0 comments on commit b3e88ae

Please sign in to comment.