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
22 -create_cvs_list) ccl=1; shift 1 ;;
23 -create_dist_files) cdf=1; shift 1 ;;
24 -create_runtimedeps) rtd=1; shift 1 ;;
25 -create_build_deps) bd=1; shift 1 ;;
30 echo "$0 -create_cvs_list"
31 echo "$0 -create_dist_files"
32 echo "$0 -create_runtimedeps"
33 echo "$0 -create_build_deps"
39 if [ "$rtd" = "1" ] ; then
40 echo "# hdw packages + run time dependencies"
42 echo "# created `date`"
44 for i in /var/adm/deps/run/*; do
45 echo -en $i | sed 's$/var/adm/deps/run/$$'
54 if [ "$ccl" = "1" ] ; then
55 for i in download/*/PKGS; do
57 while read pkg package foo; do
58 cat=`echo $i | awk -F/ '{ print $2 }'`
59 echo "download/$cat/$pkg/$package"
64 if [ "$cdf" = "1" ] ; then
65 max=`grep '^max=' ./scripts/Build-Distro | awk -F= '{ print $2 }'`
68 echo -en "creating dist file ./distro/$hdw_target ..."
69 . ./scripts/subroutines
70 echo "00-dirtree" > ./distro/$hdw_target
71 create_buildorder '2 3 4' $max > ./distro/$hdw_target.~
72 grep -v '^#' ./distro/$hdw_target.~ | awk '{ print $4 }' >> \
74 rm ./distro/$hdw_target.~