mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
Change to dump URLs in not only package/*.rb but also install.sh
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Create URL list of binary URLs from packages/*
|
||||
# Create URL list of binary URLs from packages/* and install.sh
|
||||
#
|
||||
# You can download all of them by using 'wget -P output_dir -i output_file' command
|
||||
# You can download all of them by using 'wget -N -P output_dir -i output_file' command
|
||||
|
||||
case x$1 in
|
||||
x|x-h)
|
||||
@@ -12,8 +12,8 @@ Options:
|
||||
-s: show URLs (ignore github URL)
|
||||
-a: show all URLs (include github URL)
|
||||
|
||||
Create URL list of binary URLs from packages/*.rb files.
|
||||
It is possible to download them all using 'wget -P output_dir -i output_file'"
|
||||
Create URL list of binary URLs from packages/*.rb files and install.sh.
|
||||
It is possible to download them all using 'wget -N -P output_dir -i output_file'"
|
||||
exit 0;;
|
||||
x-s)
|
||||
EXCLUDE_GITHUB_URL="grep -v 'github\.com'";;
|
||||
@@ -21,10 +21,18 @@ x-a)
|
||||
EXCLUDE_GITHUB_URL="cat";;
|
||||
esac
|
||||
|
||||
grep -h 'link=.*\(http\|https\|ftp\):' install.sh | \
|
||||
eval $EXCLUDE_GITHUB_URL | \
|
||||
sed -e 's:/www\.dropbox\.com/:/dl.dropboxusercontent.com/:' \
|
||||
-e 's/link=//' \
|
||||
-e 's/^[ \t]*["'"'"']//' \
|
||||
-e 's/[\?&].*["'"'"'].*$//' \
|
||||
-e 's/["'"'"'].*$//'
|
||||
|
||||
grep -h '\(armv7l\|i686\|x86_64\):.*\(http\|https\|ftp\):' packages/*.rb | \
|
||||
eval $EXCLUDE_GITHUB_URL | \
|
||||
sed -e 's:/www\.dropbox\.com/:/dl.dropboxusercontent.com/:' \
|
||||
-e 's/\(armv7l\|i686\|x86_64\)://' \
|
||||
-e 's/^[ \t]*["'"'"']//' \
|
||||
-e 's/[\?&].*["'"'"'].*$//' \
|
||||
-e 's/["'"'"'].*$//' \
|
||||
-e 's/["'"'"'].*$//'
|
||||
|
||||
Reference in New Issue
Block a user