find-4.1.20 does not support -regextype option
use -name "*.png" -o -name "*.svg" instead
This commit is contained in:
@@ -3,7 +3,7 @@ umask 022
|
|||||||
|
|
||||||
if [ "${KDEMAINDIR}" ]; then
|
if [ "${KDEMAINDIR}" ]; then
|
||||||
echo "Copying icons..."
|
echo "Copying icons..."
|
||||||
for i in `cd "${ICON_SOURCE_DIR}"; find ${ICON_THEMES:-hicolor/???x??? hicolor/??x?? hicolor/scalable locolor} -regextype posix-egrep -regex ".*\.(png|svg)"`
|
for i in `cd "${ICON_SOURCE_DIR}"; find ${ICON_THEMES:-hicolor/???x??? hicolor/??x?? hicolor/scalable locolor} -name "*.png" -o -name "*.svg"`
|
||||||
do
|
do
|
||||||
targetdir=${DESTDIR}/${KDEMAINDIR}/share/icons/`dirname ${i}`
|
targetdir=${DESTDIR}/${KDEMAINDIR}/share/icons/`dirname ${i}`
|
||||||
mkdir -p "${targetdir}"
|
mkdir -p "${targetdir}"
|
||||||
@@ -22,7 +22,7 @@ fi
|
|||||||
|
|
||||||
if [ "${GNOMEDIR}" ]; then
|
if [ "${GNOMEDIR}" ]; then
|
||||||
echo "Copying GNOME icons..."
|
echo "Copying GNOME icons..."
|
||||||
for i in `cd "${ICON_SOURCE_DIR}/hicolor"; find ??x?? ???x??? scalable -regextype posix-egrep -regex ".*\.(png|svg)"`
|
for i in `cd "${ICON_SOURCE_DIR}/hicolor"; find ??x?? ???x??? scalable -name "*.png" -o -name "*.svg"`
|
||||||
do
|
do
|
||||||
targetdir=${DESTDIR}/${GNOMEDIR}/share/icons/gnome/`dirname ${i}`
|
targetdir=${DESTDIR}/${GNOMEDIR}/share/icons/gnome/`dirname ${i}`
|
||||||
mkdir -p "${targetdir}"
|
mkdir -p "${targetdir}"
|
||||||
|
Reference in New Issue
Block a user