Skip to content

Commit

Permalink
release: prepare release checkstyle-backport-jre6-8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach committed May 3, 2018
1 parent 9151cb5 commit 4c94c3d
Show file tree
Hide file tree
Showing 468 changed files with 4,372 additions and 2,173 deletions.
67 changes: 67 additions & 0 deletions .ci/circleci.sh
@@ -0,0 +1,67 @@
#!/bin/bash
# Attention, there is no "-x" to avoid problems on Wercker
set -e

case $1 in

no-exception-openjdk7-openjdk8)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
echo 'CS_POM_VERSION='${CS_POM_VERSION}
cd ../
cd contribution/checkstyle-tester
sed -i'' 's/^guava/#guava/' projects-for-circle.properties
sed -i'' 's/#openjdk7/openjdk7/' projects-for-circle.properties
sed -i'' 's/#openjdk8/openjdk8/' projects-for-circle.properties
groovy launch.groovy --listOfProjects projects-for-circle.properties \
--config checks-nonjavadoc-error.xml --checkstyleVersion ${CS_POM_VERSION}
;;

no-exception-openjdk9-lucene-and-others)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
echo 'CS_POM_VERSION='${CS_POM_VERSION}
cd ../
cd contribution/checkstyle-tester
sed -i'' 's/^guava/#guava/' projects-for-circle.properties
sed -i'' 's/#openjdk9/openjdk9/' projects-for-circle.properties
sed -i'' 's/#infinispan/infinispan/' projects-for-circle.properties
sed -i'' 's/#protonpack/protonpack/' projects-for-circle.properties
sed -i'' 's/#jOOL/jOOL/' projects-for-circle.properties
sed -i'' 's/#lucene-solr/lucene-solr/' projects-for-circle.properties
groovy launch.groovy --listOfProjects projects-for-circle.properties \
--config checks-nonjavadoc-error.xml --checkstyleVersion ${CS_POM_VERSION}
;;

no-exception-cassandra-storm-tapestry)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
echo 'CS_POM_VERSION='${CS_POM_VERSION}
cd ../
cd contribution/checkstyle-tester
sed -i'' 's/^guava/#guava/' projects-for-circle.properties
sed -i'' 's/#tapestry-5/tapestry-5/' projects-for-circle.properties
sed -i'' 's/#storm/storm/' projects-for-circle.properties
sed -i'' 's/#cassandra/cassandra/' projects-for-circle.properties
groovy launch.groovy --listOfProjects projects-for-circle.properties \
--config checks-nonjavadoc-error.xml --checkstyleVersion ${CS_POM_VERSION}
;;

no-exception-hadoop-apache-groovy-scouter)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
echo 'CS_POM_VERSION='${CS_POM_VERSION}
cd ../
cd contribution/checkstyle-tester
sed -i'' 's/^guava/#guava/' projects-for-circle.properties
sed -i'' 's/#apache-commons/apache-commons/' projects-for-circle.properties
sed -i'' 's/#hadoop/hadoop/' projects-for-circle.properties
sed -i'' 's/#groovy/groovy/' projects-for-circle.properties
sed -i'' 's/#scouter/scouter/' projects-for-circle.properties
groovy launch.groovy --listOfProjects projects-for-circle.properties \
--config checks-nonjavadoc-error.xml --checkstyleVersion ${CS_POM_VERSION}
;;

*)
echo "Unexpected argument: $1"
sleep 5s
false
;;

esac
20 changes: 20 additions & 0 deletions .ci/jsoref-spellchecker/exclude.pl
@@ -0,0 +1,20 @@
#!/usr/bin/perl
# This script takes null delimited files as input
# it drops paths that match the listed exclusions
# output is null delimited to match input
$/="\0";
my @excludes=qw(
(^|/)images/
^src/it/resources/
^src/test/resources/
/messages.*_..\.properties$
/releasenotes_old\.xml$
/releasenotes\.xml$
/.*_..\.translation[^/]*$
);
my $exclude = join "|", @excludes;
while (<>) {
chomp;
next if m{$exclude};
print "$_$/";
}
51 changes: 51 additions & 0 deletions .ci/jsoref-spellchecker/rpm2cpio.sh
@@ -0,0 +1,51 @@
#!/bin/sh

pkg=$1
if [ "$pkg" = "" -o ! -e "$pkg" ]; then
echo "no package supplied" 1>&2
exit 1
fi

leadsize=96
o=`expr $leadsize + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`
# echo "sig il: $il dl: $dl"

sigsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`
# echo "hdr il: $il dl: $dl"

hdrsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $hdrsize`
EXTRACTOR="dd if=$pkg ibs=$o skip=1"

COMPRESSION=`($EXTRACTOR |file -) 2>/dev/null`
if echo $COMPRESSION |grep -q gzip; then
DECOMPRESSOR=gunzip
elif echo $COMPRESSION |grep -q bzip2; then
DECOMPRESSOR=bunzip2
elif echo $COMPRESSION |grep -iq xz; then # xz and XZ safe
DECOMPRESSOR=unxz
elif echo $COMPRESSION |grep -q cpio; then
DECOMPRESSOR=cat
else
# Most versions of file don't support LZMA, therefore we assume
# anything not detected is LZMA
DECOMPRESSOR=`which unlzma 2>/dev/null`
case "$DECOMPRESSOR" in
/* ) ;;
* ) DECOMPRESSOR=`which lzmash 2>/dev/null`
case "$DECOMPRESSOR" in
/* ) DECOMPRESSOR="lzmash -d -c" ;;
* ) DECOMPRESSOR=cat ;;
esac
;;
esac
fi

$EXTRACTOR 2>/dev/null | $DECOMPRESSOR

0 comments on commit 4c94c3d

Please sign in to comment.