]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/make-tar.sh
ncurses 5.8 - patch 20110319
[ncurses.git] / test / make-tar.sh
index f468e2321bf14395ed419368bcc5ef0c14a0a715..3231dbc0a4e74260a0258804f9d3cfb370bb34b4 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
-# $Id: make-tar.sh,v 1.4 2010/11/06 18:31:46 tom Exp $
+# $Id: make-tar.sh,v 1.5 2011/03/19 19:29:44 tom Exp $
 ##############################################################################
-# Copyright (c) 2010 Free Software Foundation, Inc.                          #
+# Copyright (c) 2010,2011 Free Software Foundation, Inc.                     #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
 # copy of this software and associated documentation files (the "Software"), #
@@ -31,6 +31,9 @@
 # scripts.  The reason for doing that is to simplify distributing the test
 # programs as a separate package.
 
+CDPATH=:
+export CDPATH
+
 TARGET=`pwd`
 
 : ${ROOTNAME:=ncurses-test}
@@ -40,6 +43,7 @@ TARGET=`pwd`
 # This can be run from either the test subdirectory, or from the top-level
 # source directory.  We will put the tar file in the original directory.
 test -d ./test && cd ./test
+SOURCE=`cd ..;pwd`
 
 BUILD=$TMPDIR/make-tar$$
 trap "cd /; rm -rf $BUILD; exit 0" 0 1 2 5 15
@@ -64,6 +68,11 @@ do
        done
 done
 
+cp -p $SOURCE/NEWS $BUILD/$ROOTNAME
+
+touch $BUILD/$ROOTNAME/MANIFEST 
+( cd $BUILD/$ROOTNAME && find . -type f -print |$SOURCE/misc/csort >MANIFEST )
+
 cd $BUILD || exit 
 
 # There is no need for this script in the tar file.