Mercurial > mxe-octave
comparison mk-dist @ 2956:dfa81fbfc1f5
msys binary packages
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 11 Jan 2013 22:33:56 -0500 |
parents | f0fe5698ee67 |
children | 0c4eab3a7903 |
comparison
equal
deleted
inserted
replaced
2955:19aa16ec87c0 | 2956:dfa81fbfc1f5 |
---|---|
33 echo "deleting previous dist directory..." | 33 echo "deleting previous dist directory..." |
34 rm -rf dist | 34 rm -rf dist |
35 mkdir -p dist/octave | 35 mkdir -p dist/octave |
36 | 36 |
37 echo "building octave and dependencies..." | 37 echo "building octave and dependencies..." |
38 make octave native-gcc native-binutils JOBS=$jobs | 38 make octave msys-base native-gcc native-binutils JOBS=$jobs |
39 | 39 |
40 echo "copying files..." | 40 echo "generating lists of files to exclude..." |
41 cd $TOPDIR/cross-tools/$TOPDIR/$PREFIX/$TARGET | |
42 find . -type f -o -type l | sed "s,./,," > $TOPDIR/excluded-gcc-files | |
43 cd $TOPDIR/usr/$TARGET | |
44 tar -c -h -X $TOPDIR/excluded-gcc-files -f - . | ( cd $TOPDIR/dist/octave ; tar xpf - ) | |
45 | 41 |
42 echo " native files..." | |
46 cat > $TOPDIR/excluded-native-files << EOF | 43 cat > $TOPDIR/excluded-native-files << EOF |
47 ./$TARGET | 44 ./$TARGET |
48 ./bin/$TARGET-*.exe | 45 ./bin/$TARGET-*.exe |
49 EOF | 46 EOF |
50 | 47 |
48 echo " gcc cross compiler files..." | |
49 cd $TOPDIR/cross-tools/$TOPDIR/$PREFIX/$TARGET | |
50 find . -type f -o -type l | sed "s,./,," > $TOPDIR/excluded-gcc-files | |
51 | |
52 echo "copying files..." | |
53 | |
54 echo " octave and dependencies..." | |
55 cd $TOPDIR/usr/$TARGET | |
56 tar -c -h -X $TOPDIR/excluded-gcc-files -f - . | ( cd $TOPDIR/dist/octave ; tar xpf - ) | |
57 | |
58 echo " native tools..." | |
51 cd $TOPDIR/native-tools/usr | 59 cd $TOPDIR/native-tools/usr |
52 tar -c -h -X $TOPDIR/excluded-native-files -f - . | ( cd $TOPDIR/dist/octave ; tar xpf - ) | 60 tar -c -h -X $TOPDIR/excluded-native-files -f - . | ( cd $TOPDIR/dist/octave ; tar xpf - ) |
61 | |
62 echo " libgcc_s_dw2-1.dll to bin directory" | |
63 cd $TOPDIR/dist/octave | |
64 cp lib/gcc/i686-pc-mingw32/libgcc_s_dw2-1.dll bin | |
65 | |
66 echo " msys base files..." | |
67 cd $TOPDIR/msys-base | |
68 tar -c -h -f - . | ( cd $TOPDIR/dist/octave ; tar xpf - ) | |
53 | 69 |
54 echo "making all files writable by user..." | 70 echo "making all files writable by user..." |
55 chmod -R u+w $TOPDIR/dist/octave | 71 chmod -R u+w $TOPDIR/dist/octave |
56 | 72 |
57 echo "stripping files..." | 73 echo "stripping files..." |
59 for f in $(find . -name '*.dll' -o -name '*.exe'); do | 75 for f in $(find . -name '*.dll' -o -name '*.exe'); do |
60 echo " $f" | 76 echo " $f" |
61 $STRIP $f | 77 $STRIP $f |
62 done | 78 done |
63 | 79 |
64 echo "creating tar file..." | 80 #echo "creating tar file..." |
81 #cd $TOPDIR/dist | |
82 #tar -c -j -f octave.tar.bz2 octave | |
83 | |
84 echo "creating zip file..." | |
65 cd $TOPDIR/dist | 85 cd $TOPDIR/dist |
66 #tar -c -j -f octave.tar.bz2 octave | |
67 zip -q -9 -r octave.zip octave | 86 zip -q -9 -r octave.zip octave |