projects
/
cross.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cpp-git
[cross.git]
/
bin
/
unpack
1
#!/bin/bash
2
3
usage="unpack SOURCE_DIR [TARGET_DIR]"
4
5
if [ $# -lt 2 ]
6
then
7
echo $usage
8
exit 1
9
fi
10
11
source_dir=$1
12
target_dir=.
13
if [ -n "$2" ]
14
then
15
target_dir=$2
16
fi
17
18
for deb in $(ls $source_dir/*.deb)
19
do
20
echo "extract $deb"
21
dpkg-deb -x $deb $target_dir
22
done
23