updated readme
This commit is contained in:
parent
d294f365ba
commit
8158bbbee0
17
README.md
17
README.md
|
@ -4,8 +4,9 @@ Snorenotify
|
|||
Snorenotify is a multi platform Qt based notification framework.
|
||||
Using a plugin system it is possible to create notifications with many different notification systems on Windows, Unix and Mac.
|
||||
|
||||
|
||||
## Supported Backends ##
|
||||
- [Windows 8](https://github.com/TheOneRing/Snoretoast)
|
||||
- [Windows 8 toast notifications](https://github.com/TheOneRing/Snoretoast)
|
||||
|
||||
[ ![Windows 8 Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/win8_high.jpg) ](http://winkde.org/~pvonreth/other/snore/img/win8.png)
|
||||
|
||||
|
@ -17,10 +18,20 @@ Using a plugin system it is possible to create notifications with many different
|
|||
|
||||
[![Snarl Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/snarl_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/snarl.png)
|
||||
|
||||
- Free Desktop Notifications
|
||||
|
||||
[![Free Desktop Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/fd_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/fd.png)
|
||||
|
||||
- Integrated notifications
|
||||
|
||||
[![Snore Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/snore_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/snore.png)
|
||||
[![Snore Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/snore-xp_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/snore-xp.png)
|
||||
|
||||
- System Tray
|
||||
|
||||
[![System Tray Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/tray_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/tray.png)
|
||||
[![System Tray Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/tray_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/tray.png)
|
||||
|
||||
## Projects using Snore ##
|
||||
[Quassel IRC](http://www.quassel-irc.org/)
|
||||
|
||||
## API Doc ##
|
||||
[A documentation of the API can be found here](http://winkde.org/~pvonreth/other/snore/doc/html/index.html)
|
|
@ -1,61 +0,0 @@
|
|||
import os
|
||||
import sys
|
||||
import re
|
||||
|
||||
rn = re.compile("\r\n$",re.MULTILINE)
|
||||
n = re.compile("(?<!\r)\n",re.MULTILINE)
|
||||
|
||||
oldLicense = re.compile("^" + re.escape( "/*" ) + ".*2013.*" + re.escape("*/" ),re.MULTILINE|re.DOTALL)
|
||||
|
||||
newLicense = """/*
|
||||
SnoreNotify is a Notification Framework based on Qt
|
||||
Copyright (C) 2013 Patrick von Reth <vonreth@kde.org>
|
||||
|
||||
|
||||
SnoreNotify is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
SnoreNotify is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with SnoreNotify. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/"""
|
||||
|
||||
def myWalk(root):
|
||||
for root,folders,files in os.walk(root):
|
||||
for folder in folders:
|
||||
if not (folder == ".git" or folder == ".svn"):
|
||||
myWalk(os.path.join(root,folder))
|
||||
for fileName in files:
|
||||
fileName = os.path.join(root,fileName)
|
||||
if os.path.isfile(fileName) and (fileName.endswith(".h") or fileName.endswith(".cpp")):
|
||||
print(fileName)
|
||||
f = open(fileName,"rb+")
|
||||
tmp = f.read()
|
||||
f.close()
|
||||
tmp = str(tmp,"UTF-8")
|
||||
|
||||
lineEnding = "\r\n"
|
||||
if re.search(rn,tmp) == None:
|
||||
lineEnding = "\n"
|
||||
|
||||
tmp = re.sub(oldLicense,newLicense,tmp)
|
||||
tmp = re.sub(n,lineEnding,tmp)
|
||||
#print(re.findall(oldLicense,tmp))
|
||||
f = open(fileName,"wb+")
|
||||
f.write(tmp.encode("UTF-8"))
|
||||
f.close()
|
||||
#sys.exit(0)
|
||||
|
||||
|
||||
|
||||
myWalk(sys.argv[1])
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue