/[gentoo-projects]/portage-utils/tests/quse/dotest
Gentoo

Contents of /portage-utils/tests/quse/dotest

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Nov 4 04:11:09 2005 UTC (12 years, 8 months ago) by solar
Branch: MAIN
- add some tests

1 #!/bin/sh
2
3 ###### faster test needed.########
4 exit 0
5 ##################################
6 type -p mksquashfs || exit 0
7
8 export PORTDIR=$(portageq envvar PORTDIR) ;
9
10 arches="x86 amd64 ppc"
11
12 for arch in $arches; do
13 mkdir -p PORTDIR-${arch}
14 cd PORTDIR-${arch} || exit 1
15 [[ ! -e arch.${arch} ]] && quse -CKe ${arch} > arch.${arch} ;
16 awk '{print $1}' < arch.${arch} | cut -d / -f 1-2 | uniq | while read cpn ; do mkdir -p $cpn ; done ;
17 for ebuild in $(awk '{print $1}' < arch.${arch}) ; do cp $PORTDIR/$ebuild ./$ebuild; done ;
18 quse -CKe ${arch} | awk '{print $1}' | cut -d / -f 1-2 | uniq | while read cpn ; do cp -a $PORTDIR/$cpn/files ./$cpn/; done ;
19 cp -a $PORTDIR/{eclass,profiles,licences} . ; sync ;
20 find . -type d -name CVS | while read foo; do rm $foo/* ; sync ; rmdir $foo ; done ;
21 mksquashfs ./ ../PORTDIR-${arch}.squashfs -noappend -e arch.${arch} ;
22 rm -rf *-*
23 cd -
24 done
25 ls -lh PORTDIR-*.squashfs

  ViewVC Help
Powered by ViewVC 1.1.20