summaryrefslogtreecommitdiff
path: root/tools/rockboxdev.sh
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-05-27 22:52:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-05-27 22:52:37 +0000
commit33988545f50269cd0c77feab3e5479e7c6330476 (patch)
treeae006c6f21bd211cd1d3817b9ca9cde5eca313dc /tools/rockboxdev.sh
parent3465653fd86ce04c824c9d7d7678dc37dac97ddb (diff)
downloadrockbox-33988545f50269cd0c77feab3e5479e7c6330476.tar.gz
rockbox-33988545f50269cd0c77feab3e5479e7c6330476.zip
verify that the download dir exists and is writable, or create it if it is
missing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10001 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/rockboxdev.sh')
-rwxr-xr-xtools/rockboxdev.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index b5a13cb9df..b6419cf54d 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -86,6 +86,23 @@ case $arch in
86 ;; 86 ;;
87esac 87esac
88 88
89# Verify download directory or create it
90if test -d "$dlwhere"; then
91 if test -w "$dlwhere"; then
92 echo "Download directory $dlwhere seems to exist and is writable"
93 else
94 echo "$dlwhere exists, but doesn't seem to be writable for you"
95 exit
96 fi
97else
98 mkdir $dlwhere
99 if test $? -ne 0; then
100 echo "$dlwhere is missing and we failed to create it!"
101 exit
102 fi
103 echo "$dlwhere has been created to store downloads in"
104fi
105
89if test -d build-rbdev; then 106if test -d build-rbdev; then
90 echo "you have a build-rbdev dir already, please remove and rerun" 107 echo "you have a build-rbdev dir already, please remove and rerun"
91 exit 108 exit