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
24 -create_cvs_list) ccl=1; shift 1 ;;
25 -create_dist_files) cdf=1; shift 1 ;;
26 -create_runtimedeps) rtd=1; shift 1 ;;
27 -create_build_deps) bd=1; shift 1 ;;
28 -chroot) chr=1; shift 1 ;;
33 echo "$0 -create_cvs_list"
34 echo "$0 -create_dist_files"
35 echo "$0 -create_runtimedeps"
36 echo "$0 -create_build_deps"
42 [ "$chr" = "1" ] && root=$hdw_build_dir
44 if [ "$rtd" = "1" ] ; then
45 echo "# hdw packages + run time dependencies"
47 echo "# created `date`"
50 for i in $root/var/adm/flists/*; do
51 package=`basename $i | sed 's/-[0-9].*//'`
52 if [ -n "`echo $package | grep -v stage[0-1]`" ] ; then
53 file="$root/var/adm/deps/run/$package"
56 if [ -f $file ] ; then
57 for j in `cat $file`; do
66 if [ "$ccl" = "1" ] ; then
67 for i in download/*/PKGS; do
69 while read pkg package foo; do
70 cat=`echo $i | awk -F/ '{ print $2 }'`
71 echo "download/$cat/$pkg/$package"
76 if [ "$cdf" = "1" ] ; then
77 max=`grep '^max=' ./scripts/Build-Distro | awk -F= '{ print $2 }'`
80 echo -en "creating dist file ./distro/$hdw_target ..."
81 . ./scripts/subroutines
82 echo "00-dirtree" > ./distro/$hdw_target
83 create_buildorder '2 3' $max > ./distro/$hdw_target.~
84 grep -v '^#' ./distro/$hdw_target.~ | awk '{ print $4 }' >> \
86 rm ./distro/$hdw_target.~