view tests/test-canonicalize-lgpl.sh @ 10262:fac686211d81

vc-list-files: make the last-resort awk code more portable * build-aux/vc-list-files: Don't rely on awk's "sub" command. /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56 does not support it.
author Jim Meyering <meyering@redhat.com>
date Fri, 11 Jul 2008 19:32:46 +0200
parents 87ba7f58a9a1
children c455cd9841a8
line wrap: on
line source

#!/bin/sh

tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15

tmpfiles="$tmpfiles t-can-lgpl.tmp ise"
mkdir t-can-lgpl.tmp
ln -s t-can-lgpl.tmp/ket ise \
  || { echo "Skipping test: symbolic links not supported on this filesystem"
       rm -fr $tmpfiles
       exit 77
     }
(cd t-can-lgpl.tmp \
 && ln -s bef plo \
 && ln -s tra huk \
 && ln -s lum bef \
 && ln -s wum ouk \
 && ln -s ../ise ket \
 && echo > tra \
 && mkdir lum
) || exit 1

./test-canonicalize-lgpl${EXEEXT}
result=$?

rm -fr $tmpfiles

exit $result