-
-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hopefully this makes releases a little better for users. In particular, this avoids listing old build artifacts in the SHA256SUMS files when we make new releases, and users can now download them directly. Now to make a release you run: `make tag && make release`. After the first make session ends, you'll have a new tag released publicly, and then during the second make session, the release target will notice this new tag, build some assets, and upload them!
- Loading branch information
1 parent
80931e1
commit 0ec00fe
Showing
5 changed files
with
66 additions
and
69 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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ BINARY="mgmt" | |
# git tag pointing to the current commit | ||
TAG=$(git tag -l --points-at HEAD) | ||
# maintainer email | ||
MAINTAINER="[email protected].com" | ||
MAINTAINER="mgmtconfig@purpleidea.com" | ||
# project url | ||
URL="https://github.com/purpleidea/mgmt/" | ||
# project description | ||
|
@@ -31,6 +31,17 @@ if [ "$TAG" == "" ]; then | |
exit 1 | ||
fi | ||
|
||
if [ "$2" == "" ]; then | ||
echo "version was not specified" | ||
exit 1 | ||
fi | ||
VERSION="$2" | ||
|
||
if [ "$VERSION" != "$TAG" ]; then | ||
echo "you must checkout the correct version before building (${VERSION} != ${TAG})" | ||
exit 1 | ||
fi | ||
|
||
# make sure the package type is valid | ||
if [ "$1" != "deb" ] && [ "$1" != "rpm" ] && [ "$1" != "pacman" ]; then | ||
echo "invalid package type" | ||
|
@@ -39,11 +50,11 @@ fi | |
|
||
# there are no changelogs for pacman packages | ||
if [ "$1" != "pacman" ]; then | ||
CHANGELOG="--${1}-changelog=${DIR}/${1}/changelog" | ||
CHANGELOG="--${1}-changelog=${DIR}/${VERSION}/${1}/changelog" | ||
fi | ||
|
||
# arguments after the first one are deps | ||
for i in "${@:2}"; do | ||
# arguments after the first two are deps | ||
for i in "${@:3}"; do | ||
DEPS="$DEPS -d $i" | ||
done | ||
|
||
|
@@ -58,7 +69,7 @@ fpm \ | |
--license "$LICENSE" \ | ||
--input-type dir \ | ||
--output-type "$1" \ | ||
--package "${DIR}/${1}/" \ | ||
--package "${DIR}/${VERSION}/${1}/" \ | ||
${CHANGELOG} \ | ||
${DEPS} \ | ||
--prefix "$PREFIX" \ | ||
|
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
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
File renamed without changes.