-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make makezip build them all and extract version from info.json; bump …
…release to 0.1.4 because I messed up 0.1.3
- Loading branch information
Showing
2 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
#!/bin/sh | ||
|
||
NAME=$1 | ||
VERSION=$2 | ||
ZIP=${NAME}_${VERSION} | ||
|
||
cd prometheus | ||
git archive --format=zip --prefix=$ZIP/prometheus/ -o ../prometheus-client.zip HEAD | ||
cd ../$NAME | ||
git archive --format=zip --prefix=$ZIP/ -o ../$ZIP.zip HEAD . | ||
cd .. | ||
unzip prometheus-client.zip | ||
rm prometheus-client.zip | ||
zip -m -g -r $ZIP.zip $ZIP/prometheus | ||
rmdir $ZIP | ||
# jq comes from https://stedolan.github.io/jq/download (or apt install it). | ||
NAMES='promfacto '`git config --file .gitmodules --get-regexp path | awk '$2 != "prometheus" { print $2 }'` | ||
|
||
for NAME in $NAMES; do | ||
cd $NAME | ||
VERSION=`jq -r '.version' info.json` | ||
ZIP=${NAME}_${VERSION} | ||
|
||
git archive --format=zip --prefix=$ZIP/ -o ../$ZIP.zip HEAD . | ||
cd ../prometheus | ||
git archive --format=zip --prefix=$ZIP/prometheus/ -o ../prometheus-client.zip HEAD | ||
|
||
cd .. | ||
unzip prometheus-client.zip | ||
rm prometheus-client.zip | ||
zip -m -g -r $ZIP.zip $ZIP/prometheus | ||
rmdir $ZIP | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters