Browse Source

* 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
user/amery/sid
Alejandro Mery 18 years ago
parent
commit
8b24b3ab21
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      lib/sde-package/patch-copyright.sh

+ 5
- 0
lib/sde-package/patch-copyright.sh

@ -100,6 +100,8 @@ while read filename ; do
mode=m4 mode=m4
elif [ "$tag" = "-- " ]; then elif [ "$tag" = "-- " ]; then
mode=lua mode=lua
elif [ "$tag" = "; " ]; then
mode=ini
elif [ -z "$tag" ]; then elif [ -z "$tag" ]; then
has_copyright_note=0 has_copyright_note=0
# determine the comment mode by extension # determine the comment mode by extension
@ -117,6 +119,7 @@ while read filename ; do
*m4) mode=m4 ;; *m4) mode=m4 ;;
*.awk) mode=sh ;; *.awk) mode=sh ;;
*.all|*.ask|*.choice) mode=sh ;; *.all|*.ask|*.choice) mode=sh ;;
*.sid|*.ini) mode=ini ;;
esac esac
#echo "Mode type: $mode" #echo "Mode type: $mode"
@ -141,6 +144,8 @@ while read filename ; do
c) pretag='/*' posttag=' */' c) pretag='/*' posttag=' */'
tag=' * ' tag=' * '
;; ;;
ini) tag="; "
;;
*) echo "Unknown mode '$mode' of $filename" >&2 *) echo "Unknown mode '$mode' of $filename" >&2
continue continue
;; ;;

Loading…
Cancel
Save