3 # hdw - linux ./scripts/Helper script
5 # author: hackbard@hackdaworld.dyndns.org
10 . ./scripts/subroutines
12 # soon there will be some usefull options available:
13 # - create new priorities according to dependencies
20 -create_cvs_list) ccl=1; shift 1 ;;
21 -create_dist_files) cdf=1; shift 1 ;;
26 echo "$0 -create_cvs_list"
27 echo "$0 -create_dist_files"
34 if [ "$ccl" = "1" ] ; then
35 for i in download/*/PKGS; do
37 while read pkg package foo; do
38 cat=`echo $i | awk -F/ '{ print $2 }'`
39 echo "download/$cat/$pkg/$package"
44 if [ "$cdf" = "1" ] ; then
45 max=`grep '^max=' ./scripts/Build-Distro | awk -F= '{ print $2 }'`
48 echo -en "creating dist file ./distro/$hdw_target ..."
49 . ./scripts/subroutines
50 echo "00-dirtree" > ./distro/$hdw_target
51 create_buildorder '2 3 4' $max > ./distro/$hdw_target.~
52 grep -v '^#' ./distro/$hdw_target.~ | awk '{ print $4 }' >> \
54 rm ./distro/$hdw_target.~