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 >
Text File  |  2006-11-29  |  463b  |  22 lines

  1. #!/bin/bash
  2. #
  3. # check-all-syntax - check the integrity of YaST sources by
  4. #    testing syntax of all YCP modules and clients
  5. #
  6. # Author: Stanislav Visnovsky <visnov@suse.cz>
  7.  
  8. for i in /usr/share/YaST2/clients/*.ycp; do 
  9.   ycpc -qE "$i" || failed="$failed#$i" 
  10. done
  11.  
  12. for i in /usr/share/YaST2/modules/*.ycp; do 
  13.   ycpc -qE "$i" || failed="$failed#$i" 
  14. done
  15.  
  16. if [ "$failed" ] ; then
  17.     echo "##FAILED:#$failed###$error" | tr "#" "\n"
  18.     exit 1
  19. else
  20.     exit 0
  21. fi
  22.