Skip to content

Commit

Permalink
fix notes by @mvidner
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Nov 19, 2013
1 parent eef4ced commit be396f1
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions ytools/y2tool/find-unused-published
Expand Up @@ -2,10 +2,13 @@
# Assist in API cleanup by finding published ("global") functions/variables
# that are not used by other code.
#
# Usage:
# cd [a clean checkout of all yast repositories]
# MODULE_RB=yast2/library/network/src/modules/NetworkPopup.rb
# find-unused-published $MODULE_RB

usage() {
echo "Usage:
cd [a clean checkout of all yast repositories]
find-unused-published yast2/library/network/src/modules/NetworkPopup.rb" >&2
}


# $1 YaST Module in Ruby, pathname
published() {
Expand All @@ -24,19 +27,13 @@ find_unused() {
done
}

usage() {
echo "Usage:
cd [a clean checkout of all yast repositories]
find-unused-published yast2/library/network/src/modules/NetworkPopup.rb" >&2
}

if [ $# -ne 1 ]; then
usage
exit 1
fi

if [ ! -f $1 ]; then
echo "ERROR: File do not exist" >&2
echo "ERROR: File '$1' do not exist" >&2
usage
exit 2
fi
Expand Down

0 comments on commit be396f1

Please sign in to comment.