couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject [39/50] meck commit: updated refs/heads/master to 3544aca
Date Thu, 28 Sep 2017 21:02:47 GMT
Update publish script


Project: http://git-wip-us.apache.org/repos/asf/couchdb-meck/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-meck/commit/acd90c25
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-meck/tree/acd90c25
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-meck/diff/acd90c25

Branch: refs/heads/master
Commit: acd90c258ab0a0962f54a62c5ef25c7fa8143957
Parents: 5d8ff85
Author: Adam Lindberg <hello@alind.io>
Authored: Thu Jun 29 15:06:15 2017 +0200
Committer: Adam Lindberg <hello@alind.io>
Committed: Thu Jun 29 15:08:42 2017 +0200

----------------------------------------------------------------------
 .scripts/meck-publish.sh       | 36 +++++++++++++++++++++++++++++
 .scripts/tag_with_changelog.sh | 45 -------------------------------------
 2 files changed, 36 insertions(+), 45 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-meck/blob/acd90c25/.scripts/meck-publish.sh
----------------------------------------------------------------------
diff --git a/.scripts/meck-publish.sh b/.scripts/meck-publish.sh
new file mode 100755
index 0000000..4e9d972
--- /dev/null
+++ b/.scripts/meck-publish.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+# Install for Git with alias 'meck-publish':
+#   git config alias.meck-publish '!.scripts/meck-publish.sh'
+
+set -e # Abort on first failure, so we don't mess something up
+
+if [ -z "$1" ]; then
+    # Missing tag name
+    echo "usage: meck-publish <version>" >&2
+    exit 129
+fi
+if [ ! -z "$(git status --short)" ]; then
+    # Sanity check
+    echo "fatal: dirty repository" >&2
+    exit 128
+fi
+
+VSN="$1"
+
+# Update version in .app file
+sed -i "" -e "s/{vsn, .*}/{vsn, \"$VSN\"}/g" src/meck.app.src
+sed -i "" -e "s/@version .*/@version $VSN/g" doc/overview.edoc
+git add src/meck.app.src
+git add doc/overview.edoc
+
+# Commit, tag and push
+git commit -m "Version $VSN"
+git tag -s $1 -m "Version $VSN"
+
+git push && git push --tags
+rebar3 hex publish
+
+github_changelog_generator
+git add CHANGELOG.md
+git commit -m "Update Changelog for version $VSN"

http://git-wip-us.apache.org/repos/asf/couchdb-meck/blob/acd90c25/.scripts/tag_with_changelog.sh
----------------------------------------------------------------------
diff --git a/.scripts/tag_with_changelog.sh b/.scripts/tag_with_changelog.sh
deleted file mode 100755
index 6c53908..0000000
--- a/.scripts/tag_with_changelog.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-
-# Install for alias 'tag-cl' with:
-#   git config alias.tag-cl '!.scripts/tag_with_changelog.sh'
-
-set -e # Abort on first failure, so we don't mess something up
-
-if [ -z "$1" ]; then
-    # Missing tag name
-    echo "usage: git tag-cl <tag>" >&2
-    exit 129
-fi
-if [ ! -f CHANGELOG ]; then
-    # No changelog to be used
-    echo "fatal: CHANGELOG missing" >&2
-    exit 128
-fi
-if [ ! -z "$(git status --short)" ]; then
-    # Sanity check
-    echo "fatal: dirty repository" >&2
-    exit 128
-fi
-
-CHANGELOG=$(cat CHANGELOG)
-
-# Clean up changelog
-echo "" > CHANGELOG
-git add CHANGELOG
-
-# Update version in .app file
-sed -i "" -e "s/{vsn, .*}/{vsn, \"$1\"}/g" src/meck.app.src
-sed -i "" -e "s/@version .*/@version $1/g" doc/overview.edoc
-sed -i "" -e "s/version: \".*\"/version: \"$1\"/g" package.exs
-git add src/meck.app.src
-git add doc/overview.edoc
-git add package.exs
-
-# Commit, tag and push
-git commit -m "Version $1"
-git tag -s $1 -m "Version $1
-
-$CHANGELOG"
-git push && git push --tags
-MIX_EXS=package.exs mix hex.publish
-


Mime
View raw message