Commits

shl...@iglu.org.il@cec68495-dca5-4e2b-845c-11fdaaa4f967  committed 556c091

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

This is its first 0.18.x version.

  • Participants
  • Parent commits 110c7ac

Comments (0)

Files changed (2)

File 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

File t2/humour/fortunes/ver.txt

-0.16.144
+0.18.0