From 2a9eaeb68fc48b69b8130e3fe85c22a6c314a02b Mon Sep 17 00:00:00 2001 From: dairiki Date: Mon, 14 Jan 2002 00:05:41 +0000 Subject: [PATCH] Don't use 'find ... -printf ...'. MacOSX doesn't like it. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@1232 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- locale/update-makefile.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/locale/update-makefile.sh b/locale/update-makefile.sh index fd0c8d1cb..8eb7286e7 100644 --- a/locale/update-makefile.sh +++ b/locale/update-makefile.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: update-makefile.sh,v 1.1 2002-01-13 22:42:37 dairiki Exp $ +# $Id: update-makefile.sh,v 1.2 2002-01-14 00:05:41 dairiki Exp $ # # This shell script is used to update the list of .po files and the # dependencies for phpwiki.pot in the Makefile. @@ -28,7 +28,9 @@ EOF # Find all .po files in po/. # po_files () { - find po -name "*.po" -printf 'PO_FILES += %p\n' + find po -name "*.po" | + sed 's/^/PO_FILES += /;' | + sort } # Find all .php and .html source code which should be scanned @@ -36,9 +38,9 @@ po_files () { # pot_file_deps () { find ../lib ../templates ../themes \ - \( -name "*.php" -o -name "*.html" \) \ - -printf '${POT_FILE}: %p\n' | - sort + \( -name "*.php" -o -name "*.html" \) | + sed 's/^/${POT_FILE}: /;' | + sort } # Generate the new Makefile -- 2.45.0