Skip to content

Commit

Permalink
Distribution scripts (+ win)
Browse files Browse the repository at this point in the history
  • Loading branch information
cchantep committed May 12, 2014
1 parent dd864ec commit d2f30a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
File renamed without changes.
12 changes: 12 additions & 0 deletions util/win-msys2-dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#! /bin/sh

OSVER=$1

VER=`grep '^version:' dhek.cabal | cut -d ':' -f 2 | sed -e 's/^[ ]*//'`

DISTDIR=dist/dhek-win$OSVER-$VER
mkdir "$DISTDIR"

cp dist/build/dhek/dhek "$DISTDIR"
cd "$DISTDIR"
ldd dhek.exe | grep '/usr/' | sed -e 's/^.*=>[ \t]*/cp /;s/\.dll.*$/.dll ./' | sh

0 comments on commit d2f30a2

Please sign in to comment.