repo.or.cz
/
lwes-journaller-java.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixed the dirname
[lwes-journaller-java.git]
/
src
/
bin
/
lwes-journal-counter
blob
3a4246703e7e6ee339ad4f14a65edaefe6054580
1
#!/bin/bash
2
3
# Make sure we can run this script from any directory.
4
bin
=
`dirname "
$0
"`
/
..
5
bin
=
`cd "
$bin
"; pwd`
6
7
for
jar
in
${bin}
/
lib
/*
.jar
8
do
9
if
[
-z
$CP
];
then
10
CP
=
${jar}
11
else
12
CP
=
${CP}
:
${jar}
13
fi
14
done
15
CP
=
${CP}
:
${bin}
/
config
16
17
18
$JAVA_HOME
/
bin
/
java \
19
-Dlog4j
.configuration
=
log4j.xml \
20
-classpath
$CP
\
21
org.lwes.journaller.CountDeJournaller $@