* Add sys/dist and sys/python-dist

* Fix for C++ with r_magic.h ?
This commit is contained in:
pancake 2011-09-27 14:27:04 +02:00
parent 3b8c1e1b32
commit 866e36b970
4 changed files with 13 additions and 1 deletions

View File

@ -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*);
@ -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
};

3
sys/dist.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
cd `dirname $PWD/$0`/..
make dist

6
sys/python-dist.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
cd `dirname $PWD/$0`
./python.sh --no-install
cd ../r2-bindings
make dist

View File

@ -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}