脚本打包大量文件学习

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

你可能感兴趣的:(脚本)