Anonymous avatar Anonymous committed 556c091

Made the fortunes .spec file less error-prone. (v0.18.0)

This is its first 0.18.x version.

Comments (0)

Files changed (2)

t2/humour/fortunes/fortunes-shlomif.spec.in

 
 myprefix="%{fortunefilesprefix}"
 rm -f *.dat
-ls | grep -v "\\." | grep -v "[[:upper:]]" | \
-    ( while read T ; do \
-        mv "$T" "${myprefix}$T" ; \
-        /usr/sbin/strfile "${myprefix}$T" "${myprefix}$T.dat" ; \
-        done \
-    )
+for fn in `ls | grep -v "\\." | grep -v "[[:upper:]]"` ; do
+    mv "$fn" "${myprefix}$fn" ;
+    /usr/sbin/strfile "${myprefix}$fn" "${myprefix}$fn.dat" ;
+done
 
 %install
 
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/%{fortunedatadir}
-for I in *.dat ; do \
-    cp $I "`echo "$I" | sed 's/\.dat$//'`" \
-        $RPM_BUILD_ROOT/%{fortunedatadir} ; \
+rm -rf "$RPM_BUILD_ROOT"
+mkdir -p "$RPM_BUILD_ROOT"/%{fortunedatadir}
+for dat in *.dat ; do \
+    cp "${dat}" "`echo "$dat" | sed 's/\.dat$//'`" \
+        "$RPM_BUILD_ROOT"/%{fortunedatadir} ; \
 done
 
 %files
 %doc README
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf "$RPM_BUILD_ROOT"
 
 %changelog
 * Wed Oct 08 2008 Shlomi Fish <shlomif@iglu.org.il> 0.10.148-1

t2/humour/fortunes/ver.txt

-0.16.144
+0.18.0
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.