Kaydet (Commit) 3b3ee39f authored tarafından Herbert Dürr's avatar Herbert Dürr

macosx-create-bundle needs to be more tolerant

üst c69e071e
...@@ -74,12 +74,12 @@ while [ $# != 0 ]; do ...@@ -74,12 +74,12 @@ while [ $# != 0 ]; do
filetype=`file -L "$inputfile"` filetype=`file -L "$inputfile"`
# Create bundle based on file type # Create bundle based on file type
if printf "$filetype" | grep -q 'Mach-O executable'; then if printf "$filetype" | grep -q 'Mach-O .* executable'; then
# Do nothing as this step is obsolete # Do nothing as this step is obsolete
: :
elif printf "$filetype" | grep -q 'Mach-O dynamically linked shared library'; then elif printf "$filetype" | grep -q 'Mach-O .* dynamically linked shared library'; then
# Screen out lib\w+static libraries as they are not used directly # Screen out lib\w+static libraries as they are not used directly
if ! printf "$inputfilename" | grep -q -x -E 'lib\w+static.*\.dylib'; then if ! printf "$inputfilename" | grep -q -x -E 'lib\w+static.*\.dylib'; then
# Create jnilib link # Create jnilib link
...@@ -93,7 +93,7 @@ while [ $# != 0 ]; do ...@@ -93,7 +93,7 @@ while [ $# != 0 ]; do
#printf "macosx-create-bundle: $outputdir/$inputjnilibname successfully created\n" #printf "macosx-create-bundle: $outputdir/$inputjnilibname successfully created\n"
fi fi
else else
printf "macosx-create-bundle: error: file is not an executable or shared library.\n" >&2 printf "macosx-create-bundle: error: \"$inputfile\" is not an executable or shared library.\n" >&2
exit 1 exit 1
fi fi
done done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment