Magellan Linux

Diff of /trunk/mage/usr/lib/mage/depwalker.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2220 by niro, Wed Oct 16 06:52:01 2013 UTC revision 2221 by niro, Wed Oct 16 07:40:02 2013 UTC
# Line 32  usage() Line 32  usage()
32   echo "  -v     --pver          version number of the package"   echo "  -v     --pver          version number of the package"
33   echo "  -b     --pbuild        build number of the package"   echo "  -b     --pbuild        build number of the package"
34   echo "  -m     --method        which calc method should be used:"   echo "  -m     --method        which calc method should be used:"
35     echo "  -d     --debug         enable debug mode"
36   echo "                         install, srcinstall, depend, srcdepend"   echo "                         install, srcinstall, depend, srcdepend"
37   echo "                         upgrade, srcupgrade,"   echo "                         upgrade, srcupgrade,"
38   echo "                         install-build-prerequisites, pretend-build-prerequisites"   echo "                         install-build-prerequisites, pretend-build-prerequisites"
# Line 41  usage() Line 42  usage()
42   exit 1   exit 1
43  }  }
44    
45    # always default debug=0
46    DEBUG=0
47    
48  # very basic getops  # very basic getops
49  for i in $*  for i in $*
50  do  do
# Line 50  do Line 54  do
54   --pver|-v) shift; PVER="$1" ;;   --pver|-v) shift; PVER="$1" ;;
55   --pbuild|-b) shift; PBUILD="$1" ;;   --pbuild|-b) shift; PBUILD="$1" ;;
56   --method|-m) shift; METHOD="$1" ;;   --method|-m) shift; METHOD="$1" ;;
57     --debug|-d) shift; DEBUG=1 ;;
58   --help|-h) usage ;;   --help|-h) usage ;;
59   esac   esac
60   shift   shift
# Line 184  depwalking() Line 189  depwalking()
189    
190   while read SYM DEPNAME   while read SYM DEPNAME
191   do   do
192     if [[ ${DEBUG} = 1 ]]
193     then
194     echo "DEBUG: DEPNAME='${DEPNAME}'" >&2
195     fi
196    
197   # exclude empty depnames   # exclude empty depnames
198   [[ -z ${DEPNAME} ]] && continue   [[ -z ${DEPNAME} ]] && continue
199    

Legend:
Removed from v.2220  
changed lines
  Added in v.2221