File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if [[ ! -z "$2" ]]
1212then
1313 RELEASE_VERSION=" $2 "
1414else
15- RELEASE_VERSION=" 1.1.3 "
15+ RELEASE_VERSION=" 1.1.4 "
1616fi
1717RELEASE_FILENAME=" ${RELEASE_VERSION} .tar.gz"
1818
@@ -53,6 +53,7 @@ curl -O -L $RELEASE_URL
5353
5454echo " Unpacking Simstring..."
5555tar -xf $RELEASE_FILENAME
56+
5657rm -rf $RELEASE_FILENAME
5758RELEASE_FOLDER=" simstring-${RELEASE_VERSION} "
5859
@@ -70,7 +71,17 @@ echo "Installing..."
7071cd ..
7172mkdir ' simstring'
7273touch ' simstring/__init__.py'
73- cp ${RELEASE_FOLDER} /_* .so simstring/
74+
75+ PLATFORM=" $( uname -s) "
76+
77+ if [[ $PLATFORM == * " CYGWIN" * || $PLATFORM == * " MINGW" * ]]; then
78+ # we are on a NT system, so building creates DLLs
79+ cp ${RELEASE_FOLDER} /_* .dll simstring/
80+ else
81+ # *nix system, so bulding stuff createsd SOs
82+ cp ${RELEASE_FOLDER} /_* .so simstring/
83+ fi
84+
7485cp ${RELEASE_FOLDER} /simstring.py simstring/simstring.py
7586
7687# remove remaining files
You can’t perform that action at this time.
0 commit comments