Commit 43ac528d authored by Sam Hocevar's avatar Sam Hocevar

* toolbox:

    + Disabled useless verbosity.
    + Fixed some incorrect ">/dev/null 2>&1" semantics.
parent 9269acf9
#! /bin/sh #! /bin/sh
## toolbox for the VLC media player ## toolbox for the VLC media player
## $Id: toolbox,v 1.26 2003/06/21 17:04:20 sam Exp $ ## $Id: toolbox,v 1.27 2003/06/25 03:08:57 sam Exp $
## ##
## Authors: Samuel Hocevar <sam@zoy.org> ## Authors: Samuel Hocevar <sam@zoy.org>
...@@ -353,7 +353,7 @@ fi ...@@ -353,7 +353,7 @@ fi
## ##
if test "${action}" = "includes" if test "${action}" = "includes"
then then
set -x #set -x
LIBVLC_HEADERS=`getfiles HEADERS_include` LIBVLC_HEADERS=`getfiles HEADERS_include`
BUILTINS=`while test $# -gt 0; do echo $1; shift; done` BUILTINS=`while test $# -gt 0; do echo $1; shift; done`
...@@ -368,7 +368,7 @@ then ...@@ -368,7 +368,7 @@ then
echo '#ifdef __PLUGIN__' >> ${file}.in echo '#ifdef __PLUGIN__' >> ${file}.in
cat ${LIBVLC_HEADERS} | grep '^ *VLC_EXPORT.*;' | sed -e 's/VLC_EXPORT( *\([^,]*\), *\([^,]*\), *\(.*\));.*/# define \2 p_symbols->\2_inner/' >> ${file}.in cat ${LIBVLC_HEADERS} | grep '^ *VLC_EXPORT.*;' | sed -e 's/VLC_EXPORT( *\([^,]*\), *\([^,]*\), *\(.*\));.*/# define \2 p_symbols->\2_inner/' >> ${file}.in
echo '#endif /* __PLUGIN__ */' >> ${file}.in echo '#endif /* __PLUGIN__ */' >> ${file}.in
if diff 2>&1 >/dev/null ${file} ${file}.in if diff >/dev/null 2>&1 ${file} ${file}.in
then then
rm -f ${file}.in rm -f ${file}.in
else else
...@@ -382,7 +382,7 @@ then ...@@ -382,7 +382,7 @@ then
echo '#define STORE_SYMBOLS( p_symbols ) \' >> ${file}.tmp echo '#define STORE_SYMBOLS( p_symbols ) \' >> ${file}.tmp
cat ${LIBVLC_HEADERS} | grep '^ *VLC_EXPORT.*;' | sed -e 's/VLC_EXPORT( *\([^,]*\), *\([^,]*\), *\(.*\));.*/ (p_symbols)->\2_inner = \2; \\/' >> ${file}.tmp cat ${LIBVLC_HEADERS} | grep '^ *VLC_EXPORT.*;' | sed -e 's/VLC_EXPORT( *\([^,]*\), *\([^,]*\), *\(.*\));.*/ (p_symbols)->\2_inner = \2; \\/' >> ${file}.tmp
echo '' >> ${file}.tmp echo '' >> ${file}.tmp
if diff 2>&1 >/dev/null ${file} ${file}.tmp if diff >/dev/null 2>&1 ${file} ${file}.tmp
then then
rm -f ${file}.tmp rm -f ${file}.tmp
else else
...@@ -412,7 +412,7 @@ then ...@@ -412,7 +412,7 @@ then
fi fi
echo " } while( 0 );" >> ${file}.tmp echo " } while( 0 );" >> ${file}.tmp
echo "" >> ${file}.tmp echo "" >> ${file}.tmp
if diff 2>&1 >/dev/null ${file} ${file}.tmp if diff >/dev/null 2>&1 ${file} ${file}.tmp
then then
rm -f ${file}.tmp rm -f ${file}.tmp
else else
...@@ -436,7 +436,7 @@ then ...@@ -436,7 +436,7 @@ then
for file in modules/gui/gtk/gnome_interface.c modules/gui/gtk/gtk_interface.c modules/gui/familiar/interface.c for file in modules/gui/gtk/gnome_interface.c modules/gui/gtk/gtk_interface.c modules/gui/familiar/interface.c
do do
echo "fixing $file" echo "fixing $file"
if grep "DO NOT EDIT THIS FILE" $file 2>&1 > /dev/null if grep "DO NOT EDIT THIS FILE" $file >/dev/null 2>&1
then then
rm -f $file.$$.bak rm -f $file.$$.bak
cat > $file.$$.bak << EOF cat > $file.$$.bak << EOF
...@@ -459,7 +459,7 @@ EOF ...@@ -459,7 +459,7 @@ EOF
for file in modules/gui/gtk/gtk_support.h modules/gui/familiar/support.h for file in modules/gui/gtk/gtk_support.h modules/gui/familiar/support.h
do do
echo "fixing $file" echo "fixing $file"
if grep "DO NOT EDIT THIS FILE" $file 2>&1 > /dev/null if grep "DO NOT EDIT THIS FILE" $file >/dev/null 2>&1
then then
rm -f $file.$$.bak rm -f $file.$$.bak
sed -e 's/DO NOT EDIT.*/Created by glade, fixed by bootstrap/' \ sed -e 's/DO NOT EDIT.*/Created by glade, fixed by bootstrap/' \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment