From 0a3a7f1857b9c9b7e9521bb9d1993b16a6aa02eb Mon Sep 17 00:00:00 2001 From: Bil Kleb Date: Mon, 24 Sep 2007 14:58:51 +0000 Subject: [PATCH] To make packaging account for subdirectories and to check History.txt for release notes and date. git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@6 516e2f36-ce3a-0410-bea4-1d4a03f5df72 --- release | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/release b/release index 53b43f8..57d77b3 100755 --- a/release +++ b/release @@ -34,6 +34,22 @@ then exit 1 fi +if ! grep -q $version History.txt +then + echo "Error: no release notes for '$version' found in History.txt" + grep -H $version History.txt + exit 1 +fi + +history_date=`date +%Y-%m-%d` + +if ! grep -q $history_date History.txt +then + echo "Error: '$history_date' not found in History.txt" + grep -H $history_date History.txt + exit 1 +fi + # Refresh sample document pdflatex sample-handout > refresh-sample.log @@ -42,7 +58,7 @@ rm -f sample-handout.{aux,log,out} refresh-sample.log # Make bundle mkdir -p pkg/$package-$version -cp `cat Manifest.txt` pkg/$package-$version +tar cf - `cat Manifest.txt` | ( cd pkg/$package-$version && tar xf - ) zip -rq pkg/$package-$version.zip pkg/$package-$version cat << MESSAGE