Commits

Anonymous committed fae54ce

Fixed grep '[A-Z]' to grep '[[:upper:]]' so it will be locale-friendly.

Comments (0)

Files changed (1)

generic-fortune-rpm-spec/fortune.spec

 
 myprefix="%{fortunefilesprefix}"
 rm -f *.dat
-ls | grep -v "\\." | grep -v "[A-Z]" | \
+ls | grep -v "\\." | grep -v "[[:upper:]]" | \
     ( while read T ; do \
         mv "$T" "${myprefix}$T" ; \
         /usr/sbin/strfile "${myprefix}$T" "${myprefix}$T.dat" ; \
-        done 
+        done \
     )
 
 %install
 
 rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/%{fortunedatadir}
-for I in *.dat ; do
+for I in *.dat ; do \
     cp $I "`echo "$I" | sed 's/\.dat$//'`" \
-        $RPM_BUILD_ROOT/%{fortunedatadir}
+        $RPM_BUILD_ROOT/%{fortunedatadir} ; \
 done
 
 %files
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.