diff options
author | Jonathan Perkin <jonathan.perkin@oracle.com> | 2010-04-13 17:02:29 +0200 |
---|---|---|
committer | Jonathan Perkin <jonathan.perkin@oracle.com> | 2010-04-13 17:02:29 +0200 |
commit | f6a741f45426efd1f3bbe63e18e58ac0936f9851 (patch) | |
tree | 552e1ce62ba07925f00b6131fe18862cce43d284 /support-files/mysql.spec.sh | |
parent | 4127d1a53682c0dc5e39b924a7a3de787347f279 (diff) | |
download | mariadb-git-f6a741f45426efd1f3bbe63e18e58ac0936f9851.tar.gz |
fix fileexists()
Diffstat (limited to 'support-files/mysql.spec.sh')
-rw-r--r-- | support-files/mysql.spec.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index 3cb05372d78..3b61176a1fe 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -45,7 +45,7 @@ %define undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}} %endif -%define fileexists() %([-f "%{1}"] && echo 1 || echo 0) +%define fileexists() %([ -e "%{1}" ] && echo 1 || echo 0) # ---------------------------------------------------------------------------- # RPM build tools now automatically detect Perl module dependencies. This @@ -671,7 +671,7 @@ fi %doc %attr(644, root, root) %{_infodir}/mysql.info* -%if %fileexists(%{_mandir}/man1/innochecksum.1*) +%if %{fileexists %{_mandir}/man1/innochecksum.1*} %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1* %endif %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1* @@ -703,7 +703,7 @@ fi %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf -%if %fileexists(%{_bindir}/innochecksum) +%if %{fileexists %{_bindir}/innochecksum} %attr(755, root, root) %{_bindir}/innochecksum %endif %attr(755, root, root) %{_bindir}/my_print_defaults |