X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-linux%2Fhdw-linux.git;a=blobdiff_plain;f=scripts%2FHelper;h=fb15677648c066d1ef4e2572b8c337bdaca7c383;hp=294efa9eb63714ab80151e2daed853be48df2de9;hb=4dfe4bc90c6670e31d52449b3294467e879eda28;hpb=b0930a7ff202fe0bbbe36f1d3338e4bfb469b61d diff --git a/scripts/Helper b/scripts/Helper index 294efa9..fb15677 100755 --- a/scripts/Helper +++ b/scripts/Helper @@ -14,22 +14,54 @@ ccl=0 cdf=0 +rtd=0 +bd=0 +chr=0 +root="" 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 ;; + -chroot) chr=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 +[ "$chr" = "1" ] && root=$hdw_build_dir + +if [ "$rtd" = "1" ] ; then + echo "# hdw packages + run time dependencies" + echo "#" + echo "# created `date`" + echo + echo "00-dirtree -" + for i in $root/var/adm/flists/*; do + package=`basename $i | sed 's/-[0-9].*//'` + if [ -n "`echo $package | grep -v stage[0-1]`" ] ; then + file="$root/var/adm/deps/run/$package" + echo -en $package + echo -en " - " + if [ -f $file ] ; then + for j in `cat $file`; do + echo -en "$j " + done + fi + echo -en "\n" + fi + done +fi if [ "$ccl" = "1" ] ; then for i in download/*/PKGS; do @@ -48,7 +80,7 @@ if [ "$cdf" = "1" ] ; then 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.~ + create_buildorder '2 3' $max > ./distro/$hdw_target.~ grep -v '^#' ./distro/$hdw_target.~ | awk '{ print $4 }' >> \ ./distro/$hdw_target rm ./distro/$hdw_target.~