summaryrefslogblamecommitdiffstats
path: root/po/update-potfiles
blob: c92abd8b7074662d4923e56eaad83e47f2f25b35 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

         
                                                

 

                      
                                  

                                 
 


                                                                  
                                    
          
                                                                             
                  
#!/bin/sh
#
# Copyright (C) 2009 Karel Zak <kzak@redhat.com>
#

# find all *.c files, 
# sort the list
# exclude /samples/ subdirectories
# exclude ./tests/ from the list 
#         and remove "./" prefix

[ ! -f "po/Makevars" ] && \
	echo "You must run this script in the top-level directory"

find -name "*.c" -or -name "*.h" | \
  sort | \
  sed '/samples/d; /config\.h/d; /util-linux-.*/d; /\.\/tests/d; s/^\.\///' \
  > po/POTFILES.in