Skip to content

Commit

Permalink
Updates for release
Browse files Browse the repository at this point in the history
  • Loading branch information
webhat committed Aug 26, 2018
1 parent 6e51920 commit 1e1fac2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ modbustcp

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
modbus-demo-*.tar.bz2
modbus-demo-*
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

PROGNAME="modbus-demo"
all:
go build

release: all git-tag
tar jcf modbus-demo-`cat VERSION`.tar.bz2 modbustcp modbustcpd LICENSE README.md
mkdir ${PROGNAME}-`cat VERSION`
cp modbustcp modbustcpd LICENSE README.md ${PROGNAME}-`cat VERSION`
tar jcf ${PROGNAME}-`cat VERSION`.tar.bz2 ${PROGNAME}-`cat VERSION`
rm -rf ${PROGNAME}-`cat VERSION`

git-tag: bump
git tag `cat VERSION`
Expand All @@ -15,4 +19,5 @@ bump:
mv VERSION.new VERSION

upload:
scp modbus-demo-`cat VERSION`.tar.bz2 oplerno:/var/lib/lxd/containers/ateps-updates/rootfs/var/www/portage/distfiles/
scp ${PROGNAME}-`cat VERSION`.tar.bz2 oplerno:/var/lib/lxd/containers/ateps-updates/rootfs/var/www/portage/distfiles/

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5
1.6

0 comments on commit 1e1fac2

Please sign in to comment.