X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Funpack;fp=bin%2Funpack;h=0630995eeddccc198a8571b7c739054615dd17bd;hb=612882f86340e4acf58367c93daa3fb27ac2e48b;hp=0000000000000000000000000000000000000000;hpb=94df942c2c7bd3457276fe5b7367623cbb8c1302;p=cross.git diff --git a/bin/unpack b/bin/unpack new file mode 100755 index 0000000..0630995 --- /dev/null +++ b/bin/unpack @@ -0,0 +1,23 @@ +#!/bin/bash + +usage="unpack SOURCE_DIR [TARGET_DIR]" + +if [ $# -lt 2 ] +then + echo $usage + exit 1 +fi + +source_dir=$1 +target_dir=. +if [ -n "$2" ] +then + target_dir=$2 +fi + +for deb in $(ls $source_dir/*.deb) +do + echo "extract $deb" + dpkg-deb -x $deb $target_dir +done +