Skip to content

Commit

Permalink
- [X] Improve release + upload to marmalade scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ardumont committed Aug 9, 2015
1 parent 1ac3fca commit 6fa184d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion TODO.org
Expand Up @@ -30,9 +30,10 @@
- [ ] #245 - Trying to sync a card: orgtrello-buffer/compute-marker: Wrong type argument: numberp, nil
- [ ] #248 - Installing from melpa (unstable) works, but then it errs on an undefined variable "error-messages"
- [ ] #263 - Colors broken in org trello
* IN-PROGRESS 0.7.3 [50%]
* IN-PROGRESS 0.7.3 [60%]
- [X] Update version
- [X] #277 - Improve date time policy conversion
- [X] Improve release + upload to marmalade scripts
- [ ] Fix flycheck warnings
- [ ] #278 - Too much checklist sync?

Expand Down
6 changes: 4 additions & 2 deletions release.sh
@@ -1,15 +1,17 @@
#!/usr/bin/env bash

if [ $# -ne 1 ]; then
if [ $# -ne 2 ]; then
cat <<EOF
Use: $0 <VERSION>"
- VERSION version to release (0.1.6 for example)
- PACKAGE package to release
To install the token, execute the install-marmalade-token.sh.
EOF
exit 1;
fi
VERSION=$1
PACKAGE=$2

WDIR=$(dirname $0)

Expand All @@ -27,4 +29,4 @@ git push upstream --tag

make package

./upload-to-marmalade.sh $VERSION
./upload-to-marmalade.sh $VERSION $PACKAGE
6 changes: 4 additions & 2 deletions upload-to-marmalade.sh
@@ -1,16 +1,18 @@
#!/usr/bin/env bash
# depends on curl

if [ $# -ne 1 ]; then
if [ $# -ne 2 ]; then
cat <<EOF
Use: $0 <VERSION>"
- VERSION version to release (0.1.6 for example)
- PACKAGE package to release
EOF
exit 1;
fi

VERSION=$1
PACKAGE=$2

uploadFile () {
local username=$1
Expand All @@ -24,4 +26,4 @@ uploadFile () {
$marmaladeUrl/v1/packages
}

uploadFile ardumont ~/.marmalade/token ./org-trello-$VERSION.tar
uploadFile ardumont ~/.marmalade/token ./$PACKAGE-$VERSION.tar

0 comments on commit 6fa184d

Please sign in to comment.