脚本打包大量文件学习
TARGET_DIR=$PWD
cd /
list=`cat << EOF
usr/local/Trolltech/QtEmbedded-4.7.0-arm/examples/widgets/wiggly/wiggly
usr/local/Trolltech/QtEmbedded-4.7.0-arm/examples/painting/concentriccircles/concentriccircles
usr/local/Trolltech/QtEmbedded-4.7.0-arm/lib/libQtSql.so.4.7.0
usr/local/Trolltech/QtEmbedded-4.7.0-arm/demos/pathstroke/pathstroke.html
usr/local/Trolltech/QtEmbedded-4.7.0-arm/demos/pathstroke/pathstroke
EOF
`
tar cfvz $TARGET_DIR/target-qte-4.7.0.tgz? $list
来源:http://www.cnblogs.com/leaven/archive/2010/11/24/1886646.html