Mercurial > mxe-octave
comparison mk-dist @ 2962:486c081fd0b5
mk-dist: create octave file with date info
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 14 Jan 2013 16:35:53 -0500 |
parents | 04791633efbc |
children | 1955438b24dc |
comparison
equal
deleted
inserted
replaced
2961:170d65292853 | 2962:486c081fd0b5 |
---|---|
32 PATH=$TOPDIR/usr/bin:$PATH | 32 PATH=$TOPDIR/usr/bin:$PATH |
33 PREFIX=/usr | 33 PREFIX=/usr |
34 TARGET=i686-pc-mingw32 | 34 TARGET=i686-pc-mingw32 |
35 BUILD=x86_64-unwknown-linux-gnu | 35 BUILD=x86_64-unwknown-linux-gnu |
36 STRIP=$TARGET-strip | 36 STRIP=$TARGET-strip |
37 DATE=$(date +%Y-%m-%d-%H-%M) | |
38 OCTAVE_DIST_DIR=$TOPDIR/dist/$OCTAVE_TARGET-$DATE | |
37 | 39 |
38 echo "deleting previous dist directory..." | 40 echo "deleting previous dist directory..." |
39 rm -rf dist | 41 rm -rf $TOPDIR/dist |
40 mkdir -p dist/octave | 42 mkdir -p $OCTAVE_DIST_DIR |
41 | 43 |
42 echo "building octave and dependencies..." | 44 echo "building octave and dependencies..." |
43 make $OCTAVE_TARGET msys-base native-gcc native-binutils octave-forge-packages JOBS=$jobs | 45 make $OCTAVE_TARGET msys-base native-gcc native-binutils octave-forge-packages JOBS=$jobs |
44 | 46 |
45 echo "generating lists of files to exclude..." | 47 echo "generating lists of files to exclude..." |
56 | 58 |
57 echo "copying files..." | 59 echo "copying files..." |
58 | 60 |
59 echo " octave and dependencies..." | 61 echo " octave and dependencies..." |
60 cd $TOPDIR/usr/$TARGET | 62 cd $TOPDIR/usr/$TARGET |
61 tar -c -h -X $TOPDIR/excluded-gcc-files -f - . | ( cd $TOPDIR/dist/octave ; tar xpf - ) | 63 tar -c -h -X $TOPDIR/excluded-gcc-files -f - . | ( cd $OCTAVE_DIST_DIR ; tar xpf - ) |
62 cp $TOPDIR/build_packages.m $TOPDIR/dist/octave/src | 64 cp $TOPDIR/build_packages.m $OCTAVE_DIST_DIR/src |
63 | 65 |
64 echo " native tools..." | 66 echo " native tools..." |
65 cd $TOPDIR/native-tools/usr | 67 cd $TOPDIR/native-tools/usr |
66 tar -c -h -X $TOPDIR/excluded-native-files -f - . | ( cd $TOPDIR/dist/octave ; tar xpf - ) | 68 tar -c -h -X $TOPDIR/excluded-native-files -f - . | ( cd $OCTAVE_DIST_DIR ; tar xpf - ) |
67 | 69 |
68 echo " libgcc_s_dw2-1.dll to bin directory" | 70 echo " libgcc_s_dw2-1.dll to bin directory" |
69 cd $TOPDIR/dist/octave | 71 cd $OCTAVE_DIST_DIR |
70 cp lib/gcc/i686-pc-mingw32/libgcc_s_dw2-1.dll bin | 72 cp lib/gcc/i686-pc-mingw32/libgcc_s_dw2-1.dll bin |
71 | 73 |
72 echo " msys base files..." | 74 echo " msys base files..." |
73 cd $TOPDIR/msys-base | 75 cd $TOPDIR/msys-base |
74 tar -c -h -f - . | ( cd $TOPDIR/dist/octave ; tar xpf - ) | 76 tar -c -h -f - . | ( cd $OCTAVE_DIST_DIR ; tar xpf - ) |
75 | 77 |
76 echo "making all files writable by user..." | 78 echo "making all files writable by user..." |
77 chmod -R u+w $TOPDIR/dist/octave | 79 chmod -R u+w $OCTAVE_DIST_DIR |
78 | 80 |
79 echo "stripping files..." | 81 echo "stripping files..." |
80 cd $TOPDIR/dist/octave | 82 cd $OCTAVE_DIST_DIR |
81 for f in $(find . -name '*.dll' -o -name '*.exe'); do | 83 for f in $(find . -name '*.dll' -o -name '*.exe'); do |
82 echo " $f" | 84 echo " $f" |
83 $STRIP $f | 85 $STRIP $f |
84 done | 86 done |
85 | 87 |
86 #echo "creating tar file..." | 88 #echo "creating tar file..." |
87 #cd $TOPDIR/dist | 89 #cd $TOPDIR/dist |
88 #tar -c -j -f octave.tar.bz2 octave | 90 #tar -c -j -f $OCTAVE_TARGET-$DATE.tar.bz2 $OCTAVE_TARGET-$DATE |
89 | 91 |
90 echo "creating zip file..." | 92 echo "creating zip file..." |
91 cd $TOPDIR/dist | 93 cd $TOPDIR/dist |
92 zip -q -9 -r octave.zip octave | 94 zip -q -9 -r $OCTAVE_TARGET-$DATE.zip $OCTAVE_TARGET-$DATE |