]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - Ada95/make-tar.sh
ncurses 6.1 - patch 20190302
[ncurses.git] / Ada95 / make-tar.sh
old mode 100644 (file)
new mode 100755 (executable)
index 608bbdf..fbedca7
@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
-# $Id: make-tar.sh,v 1.12 2011/03/26 19:07:38 tom Exp $
+# $Id: make-tar.sh,v 1.17 2019/03/02 22:51:42 tom Exp $
 ##############################################################################
 ##############################################################################
-# Copyright (c) 2010,2011 Free Software Foundation, Inc.                     #
+# Copyright (c) 2010-2017,2019 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"), #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
 # copy of this software and associated documentation files (the "Software"), #
@@ -66,11 +66,11 @@ edit_specfile() {
 make_changelog() {
        test -f $1 && chmod u+w $1
        cat >$1 <<EOF
 make_changelog() {
        test -f $1 && chmod u+w $1
        cat >$1 <<EOF
-`echo $PKG_NAME|tr '[A-Z]' '[a-z]'` ($NCURSES_PATCH) unstable; urgency=low
+`echo $PKG_NAME|tr '[A-Z]' '[a-z]'` ($NCURSES_MAJOR.$NCURSES_MINOR+$NCURSES_PATCH) unstable; urgency=low
 
   * snapshot of ncurses subpackage for $PKG_NAME.
 
 
   * snapshot of ncurses subpackage for $PKG_NAME.
 
- -- `head -1 $HOME/.signature`  `date -R`
+ -- `head -1 $HOME/.signature`  `date -R`
 EOF
 }
 
 EOF
 }
 
@@ -80,7 +80,7 @@ test -d ./Ada95 && cd ./Ada95
 SOURCE=`cd ..;pwd`
 
 BUILD=$TMPDIR/make-tar$$
 SOURCE=`cd ..;pwd`
 
 BUILD=$TMPDIR/make-tar$$
-trap "cd /; rm -rf $BUILD; exit 0" 0 1 2 5 15
+trap "cd /; rm -rf $BUILD; exit 0" EXIT INT QUIT TERM HUP
 
 umask 077
 if ! ( mkdir $BUILD )
 
 umask 077
 if ! ( mkdir $BUILD )
@@ -108,7 +108,10 @@ for spec in $BUILD/$ROOTNAME/package/*.spec
 do
        edit_specfile $spec
 done
 do
        edit_specfile $spec
 done
-make_changelog $BUILD/$ROOTNAME/package/debian/changelog
+for spec in $BUILD/$ROOTNAME/package/debian*
+do
+       make_changelog $spec/changelog
+done
 
 cp -p ../man/MKada_config.in $BUILD/$ROOTNAME/doc/
 if test -z "$NO_HTML_DOCS"
 
 cp -p ../man/MKada_config.in $BUILD/$ROOTNAME/doc/
 if test -z "$NO_HTML_DOCS"