X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=scripts%2FHelper;h=294efa9eb63714ab80151e2daed853be48df2de9;hb=6208a5054375b18b532c13a8db055672756cf41f;hp=ec9705c67167fa4f7c5152944c7206a010b31361;hpb=6ae193981fcc05dcc495b4bde92cb8fd290ee4dd;p=hdw-linux%2Fhdw-linux.git diff --git a/scripts/Helper b/scripts/Helper index ec9705c..294efa9 100755 --- a/scripts/Helper +++ b/scripts/Helper @@ -11,3 +11,47 @@ # soon there will be some usefull options available: # - create new priorities according to dependencies + +ccl=0 +cdf=0 + +while [ "$1" ] ; do + case "$1" in + -create_cvs_list) ccl=1; shift 1 ;; + -create_dist_files) cdf=1; shift 1 ;; + *) + echo + echo "usage:" + echo + echo "$0 -create_cvs_list" + echo "$0 -create_dist_files" + echo + exit 1 ;; + esac +done + + +if [ "$ccl" = "1" ] ; then + for i in download/*/PKGS; do + grep 'cvs:' $i | \ + while read pkg package foo; do + cat=`echo $i | awk -F/ '{ print $2 }'` + echo "download/$cat/$pkg/$package" + done + done +fi + +if [ "$cdf" = "1" ] ; then + max=`grep '^max=' ./scripts/Build-Distro | awk -F= '{ print $2 }'` + mkdir -p ./distro + . ./Config + echo -en "creating dist file ./distro/$hdw_target ..." + . ./scripts/subroutines + echo "00-dirtree" > ./distro/$hdw_target + create_buildorder '2 3 4' $max > ./distro/$hdw_target.~ + grep -v '^#' ./distro/$hdw_target.~ | awk '{ print $4 }' >> \ + ./distro/$hdw_target + rm ./distro/$hdw_target.~ + echo -en " done\n" +fi +