Skip to content

Commit 4549407

Browse files
committed
Added automated package versions info to make release
1 parent cad63dc commit 4549407

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ distribute_docs:
245245
if [ -f dist/how-to/nav.md ]; then rm dist/how-to/nav.md; fi
246246
if [ -f dist/how-to/index.md ]; then rm dist/how-to/index.md; fi
247247
cp -vR demos dist/
248+
./package-versions.bash > dist/package-versions.txt
248249

249250
release: distribute_docs dist/linux-amd64 dist/macosx-amd64 dist/windows-amd64 dist/raspbian-arm7
250251

package-versions.bash

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
#
4+
# Crawl the included Caltech Library package and display their versions in GOPATH
5+
#
6+
grep 'github.com/caltechlibrary/' *.go cmds/*/*.go | cut -d \" -f 2 | sort -u | while read PNAME; do
7+
echo -n "$PNAME -- ";
8+
V=$(grep 'Version = `' "$GOPATH/src/$PNAME/$(basename $PNAME).go" | cut -d \` -f 2)
9+
if [ "$V" = "" ]; then
10+
echo "Unknown"
11+
else
12+
echo "$V"
13+
fi
14+
done

0 commit comments

Comments
 (0)