脚本打包大量文件学习

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

原文地址:https://www.cnblogs.com/leaven/p/1886646.html