mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Add support for XEP-0198: Stream Management
- De-duplicate code by moving it into AbstractXMPPConnection - Introduce TopLevelStreamElement as superclass for all XMPP stream elements. - Add SynchronizationPoint, ParserUtils - Add ParserUtils Fixes SMACK-333 and SMACK-521
This commit is contained in:
parent
07c10a7444
commit
fc51f3df48
69 changed files with 3277 additions and 1083 deletions
25
resources/getCopyright.sh
Executable file
25
resources/getCopyright.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
SCRIPTDIR="$(dirname ${BASH_SOURCE[0]})"
|
||||
BASEDIR=${SCRIPTDIR}/..
|
||||
|
||||
cd $BASEDIR
|
||||
SUBPROJECTS=$(grep -oP "\'.*\'" settings.gradle | sed "s;';;g")
|
||||
for p in $SUBPROJECTS; do
|
||||
echo "Copyright notices for $p"
|
||||
# Find all .java files in the project
|
||||
find $p/src -type f -name "*.java" -print0 | \
|
||||
# Get the project string
|
||||
xargs -0 grep -ohP '^.*\* Copyright \K.*' | \
|
||||
# Sort the output
|
||||
sort | \
|
||||
# Remove duplicates
|
||||
uniq | \
|
||||
# Split multi Copyright statemtents, e.g. "2001-2013 FooBar, 2014 Baz"
|
||||
tr ',' '\n' | \
|
||||
# Remove whitespaces resulting from the previous split
|
||||
sed "s/^[ \t]*//" | \
|
||||
# Remove dots at the end and '©' at the beginning
|
||||
sed "s/^© //" | sed "s/\.$//" | sed "s/^(C) //"
|
||||
echo -ne "\n"
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue