From 8b24b3ab219080cb43c08f101f2eef1ef5e69363 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 6 Feb 2007 16:34:26 +0000 Subject: [PATCH] * improved lib/sde-package/patch-copyright.sh to handle .sid and .ini git-svn-id: svn://svn.opensde.net/opensde/opensde/branches/sid@20103 10447126-35f2-4685-b0cf-6dd780d3921f --- lib/sde-package/patch-copyright.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/sde-package/patch-copyright.sh b/lib/sde-package/patch-copyright.sh index 52becc7..205b4b6 100755 --- a/lib/sde-package/patch-copyright.sh +++ b/lib/sde-package/patch-copyright.sh @@ -100,6 +100,8 @@ while read filename ; do mode=m4 elif [ "$tag" = "-- " ]; then mode=lua + elif [ "$tag" = "; " ]; then + mode=ini elif [ -z "$tag" ]; then has_copyright_note=0 # determine the comment mode by extension @@ -117,6 +119,7 @@ while read filename ; do *m4) mode=m4 ;; *.awk) mode=sh ;; *.all|*.ask|*.choice) mode=sh ;; + *.sid|*.ini) mode=ini ;; esac #echo "Mode type: $mode" @@ -141,6 +144,8 @@ while read filename ; do c) pretag='/*' posttag=' */' tag=' * ' ;; + ini) tag="; " + ;; *) echo "Unknown mode '$mode' of $filename" >&2 continue ;;