Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
36378182
authored
Feb 02, 2013
by
x
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://giccero.cloud.ik.bme.hu/cloud
parents
0dd8b6a1
cc2bf346
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
miscellaneous/ircbot/post-receive
+17
-0
miscellaneous/ircbot/tracrss/check.sh
+21
-0
No files found.
miscellaneous/ircbot/post-receive
0 → 100755
View file @
36378182
#!/bin/bash
exec
>>
/tmp/pclog 2>&1
date
id
read
old new
old
=
$(
git rev-parse
"
$old
"
)
new
=
$(
git rev-parse
"
$new
"
)
for
i
in
$(
git rev-list
$old
..
$new
)
do
sudo
-u
www-data /usr/local/bin/trac-admin /srv/trac/cloud/ changeset added cloud
"
$i
"
git log
--decorate
--date-order
--format
=
'%h %d - %an: %s'
"
$i
~..
$i
"
>
/home/git/irc/irc.atw.hu/#ik/in
done
miscellaneous/ircbot/tracrss/check.sh
0 → 100755
View file @
36378182
#!/bin/bash
rmtag
()
{
sed
-e
's/<[^>]*>//g'
-e
's/^[ \t]*//g'
-e
's/[ \t]*$//g'
}
wget
-q
--user
=
ircbot
--password
=
rahX5eir
--no-check-certificate
'https://giccero.cloud.ik.bme.hu/trac/cloud/login?referer=%2Ftrac%2Fcloud%2Ftimeline%3Fmilestone%3Don%26ticket%3Don%26wiki%3Don%26max%3D50%26authors%3D%26daysback%3D1%26format%3Drss'
-O-
|grep
-E
'(<guid|<title|<link)'
|
while
read
guid
;
read
title
;
read
link
do
guid
=
$(
rmtag
<<<
"
$guid
"
)
title
=
$(
rmtag
<<<
"
$title
"
)
link
=
$(
rmtag
<<<
"
$link
"
)
if
!
grep
-qs
"
$guid
"
~/tracrss/old
then
echo
"
$guid
"
>>
~/tracrss/old
echo
"
$title
<
$link
>"
>
~/irc/irc.atw.hu/#ik/in
fi
done
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