X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-linux%2Fhdw-linux.git;a=blobdiff_plain;f=scripts%2FHelper;h=048ed14f9f75f60affab31b914ef9e2f855e9659;hp=d2c8ea111cd598bbff480cfb47f26d00494ff3a7;hb=563012de8957e4c29943d3bd32a5073e9e350b81;hpb=3106036284c35dc55c73fbca0342271d9a979716 diff --git a/scripts/Helper b/scripts/Helper index d2c8ea1..048ed14 100755 --- a/scripts/Helper +++ b/scripts/Helper @@ -13,25 +13,45 @@ # - create new priorities according to dependencies ccl=0 +cdf=0 +rtd=0 +bd=0 while [ "$1" ] ; do case "$1" in -create_cvs_list) ccl=1; shift 1 ;; + -create_dist_files) cdf=1; shift 1 ;; + -create_runtimedeps) rtd=1; shift 1 ;; + -create_build_deps) bd=1; shift 1 ;; *) echo echo "usage:" echo echo "$0 -create_cvs_list" + echo "$0 -create_dist_files" + echo "$0 -create_runtimedeps" + echo "$0 -create_build_deps" echo exit 1 ;; esac done +if [ "$rtd" = "1" ] ; then + echo "# hdw packages + run time dependencies" + echo "#" + echo "# created `date`" + echo + for i in /var/adm/deps/run/*; do + echo -en $i | sed 's$/var/adm/deps/run/$$' + echo -en " - " + for j in `cat $i`; do + echo -en "$j " + done + echo -en "\n" + done +fi if [ "$ccl" = "1" ] ; then - echo -en "puzzling PKGS files ..." - ./scripts/Puzzle > /dev/null 2>&1 - echo -en " done.\n" for i in download/*/PKGS; do grep 'cvs:' $i | \ while read pkg package foo; do @@ -40,3 +60,18 @@ if [ "$ccl" = "1" ] ; then 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 +