home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
root
/
usr
/
lib
/
YaST2
/
bin
/
check-all-syntax
next >
Wrap
Text File
|
2006-11-29
|
463b
|
22 lines
#!/bin/bash
#
# check-all-syntax - check the integrity of YaST sources by
# testing syntax of all YCP modules and clients
#
# Author: Stanislav Visnovsky <visnov@suse.cz>
for i in /usr/share/YaST2/clients/*.ycp; do
ycpc -qE "$i" || failed="$failed#$i"
done
for i in /usr/share/YaST2/modules/*.ycp; do
ycpc -qE "$i" || failed="$failed#$i"
done
if [ "$failed" ] ; then
echo "##FAILED:#$failed###$error" | tr "#" "\n"
exit 1
else
exit 0
fi