Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
a06120b6
Commit
a06120b6
authored
Jul 22, 2018
by
Chris Thurber
Committed by
GitHub
Jul 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2462 from uberhacker/update-packages_yaml
Update packages.yaml in tools
parents
511ee9cb
c7e64f39
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
974 additions
and
62 deletions
+974
-62
tools/check_updates.sh
tools/check_updates.sh
+13
-6
tools/packages.yaml
tools/packages.yaml
+961
-56
No files found.
tools/check_updates.sh
View file @
a06120b6
...
@@ -6,18 +6,25 @@ if [ ! -f packages.yaml ]; then
...
@@ -6,18 +6,25 @@ if [ ! -f packages.yaml ]; then
echo
"packages.yaml not found."
echo
"packages.yaml not found."
exit
1
exit
1
fi
fi
grep
^url: packages.yaml |
cut
-d
' '
-f2
>
/tmp/urls.txt
if
test
$1
;
then
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
)
lines
=
$(
wc
-l
/tmp/urls.txt |
cut
-d
' '
-f1
)
offset
=
$
1
offset
=
$
2
urls
=
$((
$lines
-
$offset
))
urls
=
$((
$lines
-
$offset
))
if
test
$
2
;
then
if
test
$
3
;
then
count
=
$
2
count
=
$
3
tail
-
$urls
/tmp/urls.txt |
head
-
$count
>
/tmp/new_urls.txt
tail
-
$urls
/tmp/urls.txt |
head
-
$count
>
/tmp/new_urls.txt
else
else
tail
-
$urls
/tmp/urls.txt
>
/tmp/new_urls.txt
tail
-
$urls
/tmp/urls.txt
>
/tmp/new_urls.txt
fi
fi
mv
/tmp/new_urls.txt /tmp/urls.txt
mv
/tmp/new_urls.txt /tmp/urls.txt
fi
fi
for
u
in
$(
cat
/tmp/urls.txt
)
;
do
elinks
$u
;
done
#for u in $(cat /tmp/urls.txt); do elinks $u; done
rm
-f
/tmp/urls.txt
#rm -f /tmp/urls.txt
most /tmp/urls.txt
tools/packages.yaml
View file @
a06120b6
This diff is collapsed.
Click to expand it.
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