diff options
Diffstat (limited to 'packages/lisa/lisa-0.2.2/head-n.patch')
-rw-r--r-- | packages/lisa/lisa-0.2.2/head-n.patch | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/packages/lisa/lisa-0.2.2/head-n.patch b/packages/lisa/lisa-0.2.2/head-n.patch index e69de29bb2..36d2a2a101 100644 --- a/packages/lisa/lisa-0.2.2/head-n.patch +++ b/packages/lisa/lisa-0.2.2/head-n.patch @@ -0,0 +1,76 @@ +--- lisa-0.2.2/admin/cvs.sh.orig 2002-10-05 06:19:37.000000000 +0200 ++++ lisa-0.2.2/admin/cvs.sh 2004-06-19 15:46:55.000000000 +0200 +@@ -27,7 +27,7 @@ + + check_autotool_versions() + { +-AUTOCONF_VERSION=`$AUTOCONF --version | head -1` ++AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1` + case $AUTOCONF_VERSION in + Autoconf*2.5* | autoconf*2.5* ) : ;; + "" ) +@@ -42,7 +42,7 @@ + ;; + esac + +-AUTOHEADER_VERSION=`$AUTOHEADER --version | head -1` ++AUTOHEADER_VERSION=`$AUTOHEADER --version | head -n 1` + case $AUTOHEADER_VERSION in + Autoconf*2.5* | autoheader*2.5* ) : ;; + "" ) +@@ -57,7 +57,7 @@ + ;; + esac + +-AUTOMAKE_STRING=`$AUTOMAKE --version | head -1` ++AUTOMAKE_STRING=`$AUTOMAKE --version | head -n 1` + case $AUTOMAKE_STRING in + automake*1.5d* ) + echo "*** YOU'RE USING $AUTOMAKE_STRING." +@@ -241,10 +241,10 @@ + echo "AC_OUTPUT" >> configure.in.new + modulename= + if test -f configure.in.in; then +- if head -2 configure.in.in | egrep "^#MIN_CONFIG\(.*\)$" > /dev/null; then ++ if head -n 2 configure.in.in | egrep "^#MIN_CONFIG\(.*\)$" > /dev/null; then + kde_use_qt_param=`cat configure.in.in | sed -n -e "s/#MIN_CONFIG(\(.*\))/\1/p"` + fi +- if head -2 configure.in.in | egrep "^#MIN_CONFIG" > /dev/null; then ++ if head -n 2 configure.in.in | egrep "^#MIN_CONFIG" > /dev/null; then + line=`grep "^AM_INIT_AUTOMAKE(" configure.in.in` + if test -n "$line"; then + modulename=`echo $line | sed -e "s#AM_INIT_AUTOMAKE(\([^,]*\),.*#\1#"` +@@ -284,7 +284,7 @@ + done + rm -f configure.files + touch configure.files +-if test -f configure.in.in && head -2 configure.in.in | grep "^#MIN_CONFIG" > /dev/null; then ++if test -f configure.in.in && head -n 2 configure.in.in | grep "^#MIN_CONFIG" > /dev/null; then + echo $admindir/configure.in.min >> configure.files + fi + test -f configure.in.in && echo configure.in.in >> configure.files +@@ -299,8 +299,8 @@ + subdirs() + { + dirs= +-compilefirst=`sed -ne 's#^COMPILE_FIRST[ ]*=[ ]*##p' $makefile_am | head -1` +-compilelast=`sed -ne 's#^COMPILE_LAST[ ]*=[ ]*##p' $makefile_am | head -1` ++compilefirst=`sed -ne 's#^COMPILE_FIRST[ ]*=[ ]*##p' $makefile_am | head -n 1` ++compilelast=`sed -ne 's#^COMPILE_LAST[ ]*=[ ]*##p' $makefile_am | head -n 1` + for i in `ls -1`; do + if test -f $i/Makefile.am; then + case " $compilefirst $compilelast " in +@@ -317,11 +317,11 @@ + done + + (for d in $dirs; do +- list=`sed -ne "s#^COMPILE_BEFORE_$d""[ ]*=[ ]*##p" $makefile_am | head -1` ++ list=`sed -ne "s#^COMPILE_BEFORE_$d""[ ]*=[ ]*##p" $makefile_am | head -n 1` + for s in $list; do + echo $s $d + done +- list=`sed -ne "s#^COMPILE_AFTER_$d""[ ]*=[ ]*##p" $makefile_am | head -1` ++ list=`sed -ne "s#^COMPILE_AFTER_$d""[ ]*=[ ]*##p" $makefile_am | head -n 1` + for s in $list; do + echo $d $s + done |