tests: fetch the 'ar-lib' script for archiver usage
authorPeter Rosin <peda@lysator.liu.se>
Mon, 30 Jan 2012 19:32:53 +0000 (20:32 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 30 Jan 2012 19:32:53 +0000 (20:32 +0100)
* tests/libobj10.test: The archiver is used, so the 'ar-lib'
script needs to be present for inferior hosts.  Fetch it.

tests/libobj10.test

index 306d370..d261018 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2010, 2011 Free Software
-# Foundation, Inc.
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2010, 2011, 2012 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
@@ -39,7 +39,7 @@ foo.c:
        echo 'extern int dummy;' > $@
 END
 
-: > ar-lib
+cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script 'ar-lib'"
 
 $ACLOCAL
 $AUTOCONF