From 018121e07cc16884ee2e1735e289d287e18a2c1ae12dac9fd5d557f9ac716938 Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Tue, 5 Feb 2013 09:57:56 +0000 Subject: [PATCH] - Replace spaces in filenames with "_" OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/courier-prime-fonts?expand=0&rev=2 --- courier-prime-fonts.changes | 5 +++++ courier-prime-fonts.spec | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/courier-prime-fonts.changes b/courier-prime-fonts.changes index 51c309a..0f27777 100644 --- a/courier-prime-fonts.changes +++ b/courier-prime-fonts.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 5 09:57:34 UTC 2013 - toms@opensuse.org + +- Replace spaces in filenames with "_" + ------------------------------------------------------------------- Tue Feb 5 09:45:45 UTC 2013 - toms@opensuse.org diff --git a/courier-prime-fonts.spec b/courier-prime-fonts.spec index d9dd375..30229a1 100644 --- a/courier-prime-fonts.spec +++ b/courier-prime-fonts.spec @@ -44,6 +44,12 @@ unzip -j %{SOURCE0} [ -e __MACOSX ] && rm -rf __MACOSX/ chmod 644 *.txt *.ttf + +# Replace spaces in filenames +for i in Courier*.ttf; do + mv -vi "$i" "${i// /_}" +done + # Remove DOS line endings: for i in *.txt; do sed -i 's/.$//' "$i"