-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
40 additions
and
42 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,21 +1,3 @@ | ||
#!/bin/bash -e | ||
|
||
. settings | ||
|
||
REMOTE_BRANCH=deb/${FOREMAN_VERSION} | ||
|
||
cd "$PACKAGING_DIR" | ||
|
||
git fetch $PACKAGING_GIT_REMOTE | ||
git checkout -b deb/release-$PROJECT-$FULLVERSION $PACKAGING_GIT_REMOTE/$REMOTE_BRANCH | ||
|
||
scripts/changelog.rb -v ${FULLVERSION/-rc/~rc}-1 -m "$FULLVERSION released" debian/*/*/changelog | ||
git add debian/*/*/changelog | ||
|
||
git commit -m "Release $FULLVERSION" | ||
|
||
if [[ $PACKAGING_PR == true ]] ; then | ||
git phr -m "Release $FULLVERSION" -b "$REMOTE_BRANCH" | ||
else | ||
git push $PACKAGING_GIT_REMOTE HEAD:$REMOTE_BRANCH | ||
fi | ||
./bump_packaging deb |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash -e | ||
|
||
. settings | ||
|
||
FLAVOR=$1 | ||
|
||
if [[ $FLAVOR != deb ]] && [[ $FLAVOR != rpm ]] ; then | ||
echo "Usage: $0 [deb|rpm]" >&2 | ||
exit 1 | ||
fi | ||
|
||
REMOTE_BRANCH="${FLAVOR}/${FOREMAN_VERSION}" | ||
FULL_REMOTE_BRANCH="$PACKAGING_GIT_REMOTE/$REMOTE_BRANCH" | ||
|
||
cd "$PACKAGING_DIR" | ||
|
||
git fetch $PACKAGING_GIT_REMOTE | ||
git checkout -b "${FLAVOR}/release-$PROJECT-$FULLVERSION" "${FULL_REMOTE_BRANCH}" | ||
|
||
if [[ $FLAVOR == deb ]] ; then | ||
scripts/changelog.rb -v "${FULLVERSION/-rc/~rc}-1" -m "$FULLVERSION released" debian/*/*/changelog | ||
git add debian/*/*/changelog | ||
else | ||
if [[ $FULLVERSION == *-rc* ]]; then | ||
PRERELEASE=${FULLVERSION##*-} | ||
obal update --version "${FULLVERSION%%-rc*}" --prerelease "${PRERELEASE}" --release keep $RPM_PACKAGES | ||
else | ||
obal update --version "${FULLVERSION}" $RPM_PACKAGES | ||
fi | ||
fi | ||
|
||
git commit -m "Release $FULLVERSION" | ||
|
||
if [[ $PACKAGING_PR == true ]] ; then | ||
git phr -m "Release $FULLVERSION" -b "$REMOTE_BRANCH" | ||
else | ||
git push "$PACKAGING_GIT_REMOTE" "HEAD:$REMOTE_BRANCH" | ||
fi |
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,25 +1,3 @@ | ||
#!/bin/bash -e | ||
|
||
. settings | ||
|
||
REMOTE_BRANCH=rpm/${FOREMAN_VERSION} | ||
|
||
cd "$PACKAGING_DIR" | ||
|
||
git fetch $PACKAGING_GIT_REMOTE | ||
git checkout -b rpm/release-$PROJECT-$FULLVERSION $PACKAGING_GIT_REMOTE/$REMOTE_BRANCH | ||
|
||
if [[ $FULLVERSION == *-rc* ]]; then | ||
PRERELEASE=${FULLVERSION##*-} | ||
obal update --version ${FULLVERSION%%-rc*} --prerelease ${PRERELEASE} --release keep $RPM_PACKAGES | ||
else | ||
obal update --version $FULLVERSION $RPM_PACKAGES | ||
fi | ||
|
||
git commit -m "Release $FULLVERSION" | ||
|
||
if [[ $PACKAGING_PR == true ]] ; then | ||
git phr -m "Release $FULLVERSION" -b "$REMOTE_BRANCH" | ||
else | ||
git push $PACKAGING_GIT_REMOTE HEAD:$REMOTE_BRANCH | ||
fi | ||
./bump_packaging rpm |