summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2009-04-16 11:43:19 +0100
committerNick White <git@njw.me.uk>2009-04-16 11:43:19 +0100
commitae8f80f7ef3900af963ae1aa55ee066a907e7e3b (patch)
tree97ecd8e5d39801fbe1cd07e1080c4ce75ea5665c /includes
parent9d977397941833ab810eb41cd4c8895b40d929fc (diff)
downloadgemrb-gameinstallers-ae8f80f7ef3900af963ae1aa55ee066a907e7e3b.tar.bz2
gemrb-gameinstallers-ae8f80f7ef3900af963ae1aa55ee066a907e7e3b.zip
Comment housekeeping
Diffstat (limited to 'includes')
-rw-r--r--includes/generic-includes.sh6
-rw-r--r--includes/patch-includes.sh2
2 files changed, 6 insertions, 2 deletions
diff --git a/includes/generic-includes.sh b/includes/generic-includes.sh
index 4537501..3cc65de 100644
--- a/includes/generic-includes.sh
+++ b/includes/generic-includes.sh
@@ -74,7 +74,7 @@ function checkforbin
function setperms
{
- # usage setperms targetdir
+ # usage: setperms targetdir
if ! [ -d "$1" ]; then
return 1
@@ -109,6 +109,8 @@ function usage
function parseargs
{
+ # usage: parseargs args...
+
while getopts ":i:p:c:l:" options; do
case $options in
i ) export TARGETDIR="$OPTARG";;
@@ -125,7 +127,7 @@ function parseargs
function copylower
{
- #usage: copylower source destination
+ # usage: copylower source destination
if [ -d "$1" ]; then
for filename in $(find "$1" -type f); do
lowerpath="$(echo $filename|gawk -F "$1" '{print $2}'|tr A-Z a-z)"
diff --git a/includes/patch-includes.sh b/includes/patch-includes.sh
index 8c06f8f..7081e9d 100644
--- a/includes/patch-includes.sh
+++ b/includes/patch-includes.sh
@@ -21,6 +21,8 @@
function getpatch
{
+ # usage: getpatch url [filename]
+
url=$1
if [ $# -gt 1 ]; then
filename="$2"