Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
ebd12307
Commit
ebd12307
authored
Apr 07, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: wrs_functions: fix wrs_download and add subdirs
parent
8060fefd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
wrs_functions
build/scripts/wrs_functions
+6
-4
No files found.
build/scripts/wrs_functions
View file @
ebd12307
...
...
@@ -127,7 +127,9 @@ function wrs_download {
done
. $T
mkdir -p ${WRS_DOWNLOAD_DIR} || wrs_die "mkdir ${WRS_DOWNLOAD_DIR}"
# create the directory and possibly a subdirectory
subdir=$(dirname $file)
mkdir -p ${WRS_DOWNLOAD_DIR}/$subdir || wrs_die "mkdir ${WRS_DOWNLOAD_DIR}"
# If it exists, we are done
output=${WRS_DOWNLOAD_DIR}/$file
...
...
@@ -152,14 +154,14 @@ function wrs_download {
fi
# Download from upstream
wget
$upstream
-nv $upstream -O $output
wget -nv $upstream -O $output
if [ -f $output ]; then
wrs_echo "
Copi
ed $file from upstream"
wrs_echo "
Retriev
ed $file from upstream"
return
fi
# Finally, get from ohwr.org
wget
$upstream
-nv $WRS_WR_REPOSITORY/trunk/$svnname \
wget -nv $WRS_WR_REPOSITORY/trunk/$svnname \
-O $output
if [ -f $output ]; then
wrs_echo "Retrieved $file from ohwr.org"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment