-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dist | ||
doc | ||
test | ||
.git | ||
.cabal-sandbox | ||
hugsin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
language: haskell | ||
ghc: 7.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM haskell:7.8 | ||
MAINTAINER Lyndon Maydwell <[email protected]> | ||
RUN cabal update | ||
ADD . /opt/deadpan-ddp | ||
RUN cd /opt/deadpan-ddp && cabal install -j4 | ||
|
||
RUN apt-get update | ||
RUN apt-get -y install zip 1> /dev/null 2> /dev/null | ||
|
||
ENV PATH /root/.cabal/bin:/bin:/opt/X11/bin:/opt/local/sbin:/sbin:/usr/X11R6/bin:/usr/bin:/usr/local/bin:/usr/local/git/bin:/usr/local/sbin:/usr/pkg/bin:/usr/pkg/sbin:/usr/sbin:~/bin | ||
WORKDIR /opt/deadpan-ddp | ||
RUN ls | ||
RUN ./scripts/cabal-s3 | ||
CMD ["deadpan"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
todo: | ||
grep -r TODO src test/client/* README.md | ||
grep -r undefined src test/client/* README.md | ||
|
||
docker-build: | ||
docker build . | ||
docker run | ||
docker cp /opt/deadpan-ddp/*.zip `pwd` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
version=` sed -n 's/^version:[ ]*\([0-9-]*\)/\1/p' *.cabal` | ||
executable=`sed -n 's/^executable[ ]*\(.*\)/\1/p' *.cabal` | ||
zipfile="$executable-$version.zip" | ||
|
||
if [ "`uname`" = "Darwin" ] | ||
then | ||
zipfile="$executable-$version-`sw_vers -productName | sed 's/ //g'`-`sw_vers -productVersion`-`sw_vers -buildVersion`.zip" | ||
fi | ||
|
||
if [ "`uname`" = "Linux" ] | ||
then | ||
zipfile="$executable-$version-`uname -mrs | sed 's/ /-/g'`.zip" | ||
fi | ||
|
||
echo $version | ||
echo $executable | ||
echo $zipfile | ||
|
||
zip $zipfile dist/build/$executable/$executable README.md *.cabal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
zipfile="$1" | ||
|
||
s3cmd put --acl-public $zipfile s3://sordina.binaries/$zipfile |