tests: cosmetic changes in t/extra-sources.sh
[platform/upstream/automake.git] / t / longlin2.sh
old mode 100755 (executable)
new mode 100644 (file)
index 1ba8072..6729e3f
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2005-2012 Free Software Foundation, Inc.
+# Copyright (C) 2005-2013 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # Long lines should be wrapped.
 # Report from Albert Chin.
 
-. ./defs || Exit 1
+. test-init.sh
 
-n=1
-files=
-match=
+n=1 files= match=
 while test $n -le 100
 do
   files="$files filename$n"
   match="..........$match"
-  n=`expr $n + 1`
+  n=$(($n + 1))
 done
-files2=`echo "$files" | sed s/filename/filenameb/g`
+files2=$(echo "$files" | sed s/filename/filenameb/g)
 
 cat >Makefile.am <<EOF
 FOO = $files $files2 \
@@ -44,5 +42,7 @@ EOF
 $ACLOCAL
 $AUTOMAKE
 
-grep $match Makefile.in && Exit 1
+grep $match Makefile.in && exit 1
 grep 'filenameb100 grepme' Makefile.in
+
+: