Initialisation depot

This commit is contained in:
Serge NOEL
2026-06-17 14:00:51 +02:00
commit efdf1683af
33190 changed files with 5907629 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
#
#
# script to check for dependencies; output is bad
#
# other approaches: use javap; grep in the class files?
# OK checks
echo '==== The apps package should not be referenced in the main jmri directory ===='
grep 'apps\.' java/src/jmri/*.java
echo
echo '==== The jmri package should not refer to lower jmri.* packages ===='
grep 'jmri\.[a-z]' java/src/jmri/*.java
echo
echo '==== No Swing in base interfaces ===='
grep 'javax.swing\.' java/src/jmri/*.java
echo
echo '==== The jmri.jmrix package should not reference jmri.jmrit ===='
grep -r 'jmri\.jmrit\.' java/src/jmri/jmrix
echo
echo '==== The apps package should not be referenced outside its own tree ===='
grep -r 'apps\.' java/src/jmri
echo
#
# below here is currently hopeless, but we hope to get to it eventually
#
# and needs to look for non-imports
#grep jmri. java/src/jmri/* | grep -v package | grep -v @
echo
#grep -r 'jmri\.jmrit\.' java/src/jmri/jmrix
echo
#grep -r 'jmri\.j' java/src/jmri/util/
echo
# checks to add: jdom, swing, awt in places they shouldn't be
# This one will need lots of exceptions:
#grep -r 'org\.jdom' java/src/ | grep -v configurexml
#echo