]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - scripts/Helper
fixed wine package
[hdw-linux/hdw-linux.git] / scripts / Helper
1 #!/bin/sh
2 #
3 # hdw - linux ./scripts/Helper script
4 #
5 # author: hackbard@hackdaworld.dyndns.org
6 #
7
8 # reading Config file
9 . ./Config
10 . ./scripts/subroutines
11
12 # soon there will be some usefull options available:
13 # - create new priorities according to dependencies
14
15 ccl=0
16
17 while [ "$1" ] ; do
18         case "$1" in
19                 -create_cvs_list)       ccl=1;  shift 1 ;;
20                 *)
21                         echo
22                         echo "usage:"
23                         echo
24                         echo "$0 -create_cvs_list"
25                         echo
26                         exit 1 ;;
27         esac
28 done
29
30
31 if [ "$ccl" = "1" ] ; then
32         echo -en "puzzling PKGS files ..."
33         ./scripts/Puzzle > /dev/null 2>&1
34         echo -en " done.\n"
35         for i in download/*/PKGS; do
36                 grep 'cvs:' $i | \
37                         while read pkg package foo; do
38                                 cat=`echo $i | awk -F/ '{ print $2 }'`
39                                 echo "download/$cat/$pkg/$package"
40                         done
41         done
42 fi