2007-07-18 09:04:56 +08:00
|
|
|
#!/bin/bash
|
2009-07-11 11:05:57 +08:00
|
|
|
winlist="tessdll.dll tessdll.lib tesseract.exe dlltest.exe cntraining.exe mftraining.exe unicharset_extractor.exe wordlist2dawg.exe java/ScrollView.jar"
|
|
|
|
windeps="glut32.dll jpeg62.dll libimage.dll libpng13.dll librle3.dll libtiff3.dll zlib1.dll leptonlib.dll lib/leptonlib.lib include/*.h dlltest/* tesseract.vcproj tesseract.sln StdAfx.cpp StdAfx.h tessdll.cpp tessdll.h tessdll.vcproj"
|
2007-07-18 09:04:56 +08:00
|
|
|
ver=`ls -1rt *[0-9].tar.gz |tail -1`
|
|
|
|
ver=${ver%.tar.gz}
|
2009-07-11 11:05:57 +08:00
|
|
|
for l in eng deu fra ita spa nld por vie
|
2007-07-18 09:04:56 +08:00
|
|
|
do
|
2008-04-22 08:44:56 +08:00
|
|
|
chmod 644 tessdata/$l.*
|
|
|
|
tar --group root --owner root -chozf $ver.$l.tar.gz tessdata/$l.*
|
2007-07-18 09:04:56 +08:00
|
|
|
done
|
|
|
|
tar chozf $ver.exe.tar.gz $winlist
|
2009-07-11 11:05:57 +08:00
|
|
|
tar chozf $ver.windep.tar.gz $windeps
|