1 previous_label=$1 2 3 find emd_tools/android/src -name MANIFEST.MF | sed s/".META-INF.MANIFEST.MF"//g > all_plugins.txt 4 cleartool find emd_tools/android/src -cview -version "!lbtype($previous_label)" -print | sed s:\\\\:/:g >changed_files.txt 2>/dev/null 5 6 all_plugins=$(cat all_plugins.txt) 7 changed_files=$(cat changed_files.txt) 8 9 echo DIRECTORY,ID,VERSION,PREVIOUS_VERSION,CHANGED/NEW/UNMODIFIED 10 11 for plugin in $all_plugins 12 do 13 echo -n $plugin, 14 15 pluginfile=$plugin/META-INF/MANIFEST.MF 16 17 id=$(cat $pluginfile | grep Bundle-SymbolicName) 18 id=${id%%;*} 19 id=${id##* } 20 echo -n $id 21 22 version=$(cat $pluginfile | grep Bundle-Version) 23 version=${version##* } 24 version=$(echo $version | sed s/\n//g) 25 echo -n ,$version 26 27 previous_version=$(cleartool diff -diff_format $pluginfile@@/main/0 $pluginfile@@/$previous_label 2>/dev/null | grep "Bundle-Version") 28 previous_version=${previous_version##* } 29 previous_version=$(echo $previous_version | sed s/\n//g) 30 31 if [ "$previous_version" ] 32 then 33 echo -n ,$previous_version 34 else 35 echo -n , 36 fi 37 38 changed=$(echo $changed_files | grep $plugin) 39 40 if [ "$changed" ] 41 then 42 if [ "$previous_version" ] 43 then 44 echo -n ,CHANGED 45 else 46 echo -n ,NEW 47 fi 48 else 49 echo -n ,UNMODIFIED 50 fi 51 52 echo 53 54 done