summaryrefslogtreecommitdiffstats
path: root/redhat/buildenv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/buildenv.sh')
-rw-r--r--redhat/buildenv.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/redhat/buildenv.sh b/redhat/buildenv.sh
index 4107440cc..3ed7825e0 100644
--- a/redhat/buildenv.sh
+++ b/redhat/buildenv.sh
@@ -54,6 +54,27 @@ checknew() {
done
}
+
+do_optimizegraphics() {
+ if ! (which optipng && which advdef && which pngout) ; then
+ echo "Missing utility ! Check that 'optipng', 'advdef' and 'pngout' utilities are available !"
+ return 1
+ fi
+
+ while read m; do
+ if [ -d "${m}" ]; then
+ pushd "${m}"
+ if [ -r .optimizegraphics ]; then
+ echo "Graphics are already optimized !"
+ else
+ optimizegraphics
+ touch .optimizegraphics
+ fi
+ popd
+ fi
+ done < submodules
+}
+
alias rr='rpm -qa --qf "%{name} %{buildhost}\n" | grep "\.vtf" | awk "{print \$1}"'
# Update main repository