summaryrefslogtreecommitdiffstats
path: root/compile.sh
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-05-18 21:07:39 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-05-18 21:07:39 +0200
commita070cb18368e4bb1646030bc677692a8be1e67f1 (patch)
treeae5588eed0531b68e7776598cb8e085c65431cb8 /compile.sh
parente18ba4731d625435ec075fbd6f4eb0f3e325d3d4 (diff)
compile.sh: use libewf 20120504 and e2fsprogs 1.42.2 when possible
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh26
1 files changed, 17 insertions, 9 deletions
diff --git a/compile.sh b/compile.sh
index cbae7aa..b2c0401 100755
--- a/compile.sh
+++ b/compile.sh
@@ -4,16 +4,11 @@
# Comment the version definition to not compile the library
VER_E2FSPROGS=
VER_PROGSREISERFS="0.3.1-rc8"
-VER_LIBEWF=20100226
-#VER_LIBEWF=20110312
+#VER_LIBEWF=20100226
+VER_LIBEWF=20120504
smp_mflags="-j 2"
crosscompile_target=
prefix=/usr/
-if [ "$CC" = "gcc295" ];
-then
- VER_NTFSPROGS=
- VER_LIBNTFS3G=
-fi
if [ -z "$1" ];
then
compiledir=.
@@ -21,19 +16,32 @@ else
compiledir=$1
if [ "$1" != "$CC" ];
then
- VER_E2FSPROGS=1.41.8
crosscompile_target=$1
TESTDISKCC=$crosscompile_target-gcc
fi
fi
case "$crosscompile_target" in
- *-msdosdjgpp|*-cygwin|*-mingw32)
+ "")
+ ;;
+ *-msdosdjgpp)
VER_LIBNTFS3G=
VER_NTFSPROGS="2.0.0"
+ VER_E2FSPROGS=1.41.8
+ ;;
+ *-cygwin|*-mingw32)
+ VER_LIBNTFS3G=
+ VER_NTFSPROGS="2.0.0"
+ VER_E2FSPROGS=1.42.2
+ ;;
+ i686-apple-darwin9|powerpc-apple-darwin)
+ VER_LIBNTFS3G="2011.3.28-RC"
+ VER_NTFSPROGS=
+ VER_E2FSPROGS=1.41.8
;;
*)
VER_LIBNTFS3G="2011.3.28-RC"
VER_NTFSPROGS=
+ VER_E2FSPROGS=1.42.2
;;
esac
prefix=/usr/$crosscompile_target