Another fix for Windows zip generation.
This commit is contained in:
parent
99c2a0aaf5
commit
f057b26afa
1 changed files with 7 additions and 0 deletions
|
@ -30,6 +30,7 @@ if [ ! -f $LIBNFC_WINDOWS_ARCHIVE ]; then
|
|||
if [ -d $LIBNFC_WINDOWS_DIR ]; then
|
||||
rm -rf $LIBNFC_WINDOWS_DIR
|
||||
fi
|
||||
|
||||
mkdir -p $LIBNFC_WINDOWS_DIR
|
||||
|
||||
# Export sources
|
||||
|
@ -42,6 +43,12 @@ if [ ! -f $LIBNFC_WINDOWS_ARCHIVE ]; then
|
|||
cp LICENSE $LIBNFC_WINDOWS_DIR/
|
||||
cp README $LIBNFC_WINDOWS_DIR/
|
||||
|
||||
# Remove Autotools Makefile.am
|
||||
find $LIBNFC_WINDOWS_DIR/ -name Makefile.am | xargs rm -f
|
||||
|
||||
# Remove CMakeLists.txt
|
||||
find $LIBNFC_WINDOWS_DIR/ -name CMakeLists.txt | xargs rm -f
|
||||
|
||||
# Build archive
|
||||
zip -r $LIBNFC_WINDOWS_ARCHIVE $LIBNFC_WINDOWS_DIR
|
||||
rm -rf $LIBNFC_WINDOWS_DIR
|
||||
|
|
Loading…
Reference in a new issue