mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
Update activity a-l
Update activity m-q Update activity r-z Change urls and activity status Update urls Update check_updates.sh
This commit is contained in:
@@ -6,18 +6,25 @@ if [ ! -f packages.yaml ]; then
|
||||
echo "packages.yaml not found."
|
||||
exit 1
|
||||
fi
|
||||
grep ^url: packages.yaml | cut -d' ' -f2 > /tmp/urls.txt
|
||||
if test $1; then
|
||||
grep -1 "^activity: $1" packages.yaml > /tmp/activity.txt
|
||||
grep ^url: /tmp/activity.txt | cut -d' ' -f2 > /tmp/urls.txt
|
||||
rm -f /tmp/activity.txt
|
||||
else
|
||||
grep ^url: packages.yaml | cut -d' ' -f2 > /tmp/urls.txt
|
||||
fi
|
||||
if test $2; then
|
||||
lines=$(wc -l /tmp/urls.txt | cut -d' ' -f1)
|
||||
offset=$1
|
||||
offset=$2
|
||||
urls=$(($lines - $offset))
|
||||
if test $2; then
|
||||
count=$2
|
||||
if test $3; then
|
||||
count=$3
|
||||
tail -$urls /tmp/urls.txt | head -$count > /tmp/new_urls.txt
|
||||
else
|
||||
tail -$urls /tmp/urls.txt > /tmp/new_urls.txt
|
||||
fi
|
||||
mv /tmp/new_urls.txt /tmp/urls.txt
|
||||
fi
|
||||
for u in $(cat /tmp/urls.txt); do elinks $u; done
|
||||
rm -f /tmp/urls.txt
|
||||
#for u in $(cat /tmp/urls.txt); do elinks $u; done
|
||||
#rm -f /tmp/urls.txt
|
||||
most /tmp/urls.txt
|
||||
|
||||
1017
tools/packages.yaml
1017
tools/packages.yaml
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user