# Add to the runtime search path if the flag is not already added.
if test -n "${ISC_RPATH_FLAG}" && test "$(printf '%s\n' "${LIBRARY_LIBS}" | grep -Fc -- "${ISC_RPATH_FLAG}")" = 0; then
- library_location=$(printf '%s\n' "${LIBRARY_LIBS}" | grep -Eo '\-L.*\b' | sed 's/-L//g')
+ library_location=$(printf '%s\n' "${LIBRARY_LIBS}" | grep -Eo -- '-L.*\b' | sed 's/-L//g')
if test -n "${library_location}"; then
LIBRARY_LIBS="${LIBRARY_LIBS} ${ISC_RPATH_FLAG}${library_location}"
fi
# query information_schema for the right database.
for arg in "${@}"
do
- if ! printf '%s' "${arg}" | grep -Eq '^\-\-'
+ if ! printf '%s' "${arg}" | grep -Eq -- '^--'
then
schema="$arg"
break
# query information_schema for the right database.
for arg in "${@}"
do
- if ! printf '%s' "${arg}" | grep -Eq '^\-\-'
+ if ! printf '%s' "${arg}" | grep -Eq -- '^--'
then
schema="$arg"
break
# query information_schema for the right database.
for arg in "${@}"
do
- if ! printf '%s' "${arg}" | grep -Eq '^\-\-'
+ if ! printf '%s' "${arg}" | grep -Eq -- '^--'
then
schema="$arg"
break
# query information_schema for the right database.
for arg in "${@}"
do
- if ! printf '%s' "${arg}" | grep -Eq '^\-\-'
+ if ! printf '%s' "${arg}" | grep -Eq -- '^--'
then
schema="$arg"
break
# query information_schema for the right database.
for arg in "${@}"
do
- if ! printf '%s' "${arg}" | grep -Eq '^\-\-'
+ if ! printf '%s' "${arg}" | grep -Eq -- '^--'
then
schema="$arg"
break
# query information_schema for the right database.
for arg in "${@}"
do
- if ! printf '%s' "${arg}" | grep -Eq '^\-\-'
+ if ! printf '%s' "${arg}" | grep -Eq -- '^--'
then
schema="$arg"
break
# query information_schema for the right database.
for arg in "${@}"
do
- if ! printf '%s' "${arg}" | grep -Eq '^\-\-'
+ if ! printf '%s' "${arg}" | grep -Eq -- '^--'
then
schema="$arg"
break
# query information_schema for the right database.
for arg in "${@}"
do
- if ! printf '%s' "${arg}" | grep -Eq '^\-\-'
+ if ! printf '%s' "${arg}" | grep -Eq -- '^--'
then
schema="$arg"
break
# query information_schema for the right database.
for arg in "${@}"
do
- if ! printf '%s' "${arg}" | grep -Eq '^\-\-'
+ if ! printf '%s' "${arg}" | grep -Eq -- '^--'
then
schema="$arg"
break
# query information_schema for the right database.
for arg in "${@}"
do
- if ! printf '%s' "${arg}" | grep -Eq '^\-\-'
+ if ! printf '%s' "${arg}" | grep -Eq -- '^--'
then
schema="$arg"
break
continue
fi
- old_version=$(grep '\-version\-info' "src/lib/${lib}/Makefile.am" | tr -s ' ' | rev | cut -d ' ' -f 1 | rev | cut -d ':' -f 1)
+ old_version=$(grep -- '-version-info' "src/lib/${lib}/Makefile.am" | tr -s ' ' | rev | cut -d ' ' -f 1 | rev | cut -d ':' -f 1)
new_version=$((old_version + increment))
sed -i "s/version-info .*/version-info ${new_version}:0:0/" "src/lib/${lib}/Makefile.am"
done
continue
fi
- old_version=$(grep '\-version\-info' "src/lib/${lib}/Makefile.am" | tr -s ' ' | rev | cut -d ' ' -f 1 | rev | cut -d ':' -f 1)
+ old_version=$(grep -- '-version-info' "src/lib/${lib}/Makefile.am" | tr -s ' ' | rev | cut -d ' ' -f 1 | rev | cut -d ':' -f 1)
new_version=$((old_version + increment_extra))
sed -i "s/version-info .*/version-info ${new_version}:0:0/" "src/lib/${lib}/Makefile.am"
done
includes=$(grep -E '^#include' "${i}" | sort -V)
unique_includes=$(grep -E '^#include' "${i}" | sort -uV)
diff=$(posix_diff "${includes}" "${unique_includes}" | \
- grep -F '#include' | grep -E '^\-|^\+' | sed -E 's/^([^-+ ]*)[-+ ]/\1/' )
+ grep -F '#include' | grep -E '^-|^\+' | sed -E 's/^([^-+ ]*)[-+ ]/\1/' )
if test -n "${diff}"; then
printf '%s has the following duplicate includes:\n%s\n\n' "${i}" "${diff}"
found=true