Skip to content

Commit

Permalink
blink1control-tool: added version thinking on this, for issue #139
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed Aug 26, 2014
1 parent b16181f commit 3f3a66b
Show file tree
Hide file tree
Showing 4 changed files with 512 additions and 1 deletion.
1 change: 0 additions & 1 deletion commandline/blink1-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ int main(int argc, char** argv)
{"blink", required_argument, &cmd, CMD_BLINK},
{"glimmer", optional_argument, &cmd, CMD_GLIMMER},
{"play", required_argument, &cmd, CMD_PLAY},
{"play", required_argument, &cmd, CMD_PLAY},
{"stop", no_argument, &cmd, CMD_STOP},
{"playstate", no_argument, &cmd, CMD_GETPLAYSTATE},
{"random", optional_argument, &cmd, CMD_RANDOM },
Expand Down
33 changes: 33 additions & 0 deletions commandline/blink1control-tool/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

blink1control-tool -- `blink1-tool`-like program for use with Blink1Control
============


Prerequisites:
###
- libcurl

Compiling:
###
On Mac OS X:
```
% wget http://curl.haxx.se/download/curl-7.37.1.tar.gz
% tar xvzf curl-7.37.1.tar.gz
% cd curl-7.37.1
% ./configure --prefix `pwd`/../curl-mac --disable-shared --disable-ldap --without-zlib --without-libssh2 --without-ssl --disable-crypto-auth
% make && make install
% cd ..
% make
```

On Windows:
```
% wget http://curl.haxx.se/download/curl-7.37.1.tar.gz
% tar xvzf curl-7.37.1.tar.gz
% cd curl-7.37.1
# In the file libcurl.pc.in add -DCURL_STATICLIB to Cflags.
% ./configure --prefix `pwd`/../curl-win --disable-shared --disable-ldap --without-zlib --without-libssh2
% make && make install
% cd ..
% gcc -static -o curl-simple curl-simple.c `curl-win2/bin/curl-config --cflags` `curl-win2/bin/curl-config --static-libs`
```
Loading

0 comments on commit 3f3a66b

Please sign in to comment.