Permalink
Browse files

Proper purge for OS X specifics. Added DYLD_LIBRARY_PATH to the build…

… script for the same OS X reasons.
  • Loading branch information...
1 parent 2b335f0 commit d90b8093ae8e3e898c08fba01338f1ddce1817a3 @SaltwaterC committed Aug 9, 2012
Showing with 15 additions and 8 deletions.
  1. +7 −0 Makefile
  2. +8 −8 tools/build.sh
View
@@ -1,9 +1,16 @@
+.PHONY: all
+.DEFAULT: all
+
+all: build
+
purge:
rm -rf src/
rm -rf bin/.libs
rm -f bin/file
rm -f lib/libmagic.so
rm -f lib/libmagic.so.1
+ rm -f lib/libmagic.dylib
+ rm -f lib/libmagic.1.dylib
publish: purge
/usr/bin/env npm -f publish
View
@@ -54,17 +54,17 @@ then
echo "--[DEBUG]--"
echo "Version information:"
# print the version info for debug purposes
- LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc -v
+ LD_LIBRARY_PATH=lib DYLD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc -v
echo
# execute simple lookups to test the installation
echo "Testing the installation:"
- LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo
- LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.pdf
- LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt
- LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.bz2
- LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.gz
- LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.tar
- LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.zip
+ LD_LIBRARY_PATH=lib DYLD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo
+ LD_LIBRARY_PATH=lib DYLD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.pdf
+ LD_LIBRARY_PATH=lib DYLD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt
+ LD_LIBRARY_PATH=lib DYLD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.bz2
+ LD_LIBRARY_PATH=lib DYLD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.gz
+ LD_LIBRARY_PATH=lib DYLD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.tar
+ LD_LIBRARY_PATH=lib DYLD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.zip
echo "--[DEBUG]--"
fi

0 comments on commit d90b809

Please sign in to comment.