Skip to content

Commit

Permalink
* Add sys/dist and sys/python-dist
Browse files Browse the repository at this point in the history
* Fix for C++ with r_magic.h ?
  • Loading branch information
radare committed Sep 27, 2011
1 parent 3b8c1e1 commit 866e36b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libr/include/r_magic.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ extern "C" {

typedef struct r_magic_set RMagic;

#ifdef R_API
R_API RMagic* r_magic_new();
R_API void r_magic_free(RMagic*);

Expand All @@ -277,6 +278,7 @@ R_API int r_magic_load(RMagic*, const char *);
R_API int r_magic_compile(RMagic*, const char *);
R_API int r_magic_check(RMagic*, const char *);
R_API int r_magic_errno(RMagic*);
#endif

#ifdef __cplusplus
};
Expand Down
3 changes: 3 additions & 0 deletions sys/dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
cd `dirname $PWD/$0`/..
make dist
6 changes: 6 additions & 0 deletions sys/python-dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
cd `dirname $PWD/$0`

./python.sh --no-install
cd ../r2-bindings
make dist
3 changes: 2 additions & 1 deletion sys/python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ cd r2-bindings
cd python
make clean
make
sudo make install PYTHON_VERSION=${PYTHON_VERSION}
[ ! "$1" = --no-install ] && \
sudo make install PYTHON_VERSION=${PYTHON_VERSION}

0 comments on commit 866e36b

Please sign in to comment.