Skip to content

Commit

Permalink
release.org add --tag-no-rename
Browse files Browse the repository at this point in the history
for cases where difference in repo/package naming does not indicate
that different tags are used e.g. for parsercomb/pysercomb which is
named as such because I only want a single folder in my local git repo
to start with py
  • Loading branch information
tgbugs committed Nov 25, 2019
1 parent f93ea4a commit bf9c8dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/release.org
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ build-release () {
shift
shift
;;
--default)
local DEFAULT=YES
--tag-no-rename)
local TAG_NO_RENAME=YES
shift # past argument
;;
,*) # unknown option
Expand All @@ -91,7 +91,7 @@ build-release () {
local REST=${POSITIONAL[@]:5} # remaining position passed along
echo $REST

if [[ ${folder} == ${packagename} ]]; then
if [[ ${folder} == ${packagename} || -n ${TAG_NO_RENAME} ]]; then
local tag=${version}
else
local tag=${packagename}-${version}
Expand Down

0 comments on commit bf9c8dd

Please sign in to comment.