update buildroot - work in progress development
[cmdllinux.git] / buildroot / _pkg_tmp / _#remove2.sh
blob8082a9cb3d5fd1960003b2afa50d8b3ba23457af
1 sh _remove_dep1.sh.sh
2 #cut -d / -f 1 .rem_cache.tmp1.sort | sort -u > .rem_cache.tmp1.sort1
3 #cut -d : -f 2 .rem_cache.tmp1.sort | sort -u > .rem_cache.tmp1.sort2
4 #cat .rem_cache.tmp1.sort1 .rem_cache.tmp1.sort2 | sort -u > .rem_cache.tmp1.sort3
5 OPKG=
6 DEPP=
7 while read line; do
8 PKG=${line%%/*}
9 DEP=${line##*:}
10 if [ "$OPKG" != "$PKG" ]; then
11 if [ -z "$OPKG" ]; then
12 DEPP="$DEP"
13 else
14 echo "$OPKG/depends:$DEPP"
15 DEPP="$DEP"
17 OPKG="$PKG"
18 else
19 [ -z "$DEPP" ] && DEPP="$DEP" || DEPP="$DEPP $DEP"
21 done < .rem_cache.tmp1.sort > .rem_cache.tmp1.sort4
22 [[ ! -z "$PKG" ]] && echo "$PKG/depends:$DEPP" >> .rem_cache.tmp1.sort4