File: extract.tcl

package info (click to toggle)
coccinella 0.96.20-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 13,184 kB
  • sloc: tcl: 124,744; xml: 206; makefile: 66; sh: 62
file content (13 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# The next line restarts using wish \
exec tclsh "$0" "$@"

### Extract strings from source to template.pot

# Put contents of the file ../VERSION into variable "version"
set fp [open "../VERSION" r]
set version [read $fp]
close $fp

# Extract command
exec xgettext --sort-by-file --msgid-bugs-address=https://bugs.launchpad.net/coccinella/+filebug --copyright-holder="The-Coccinella-Project" --package-name=Coccinella --package-version=$version --from-code=UTF-8 --add-comments=TRANSLATORS --language=tcl --keyword=mc --files-from=./POTFILES.in --output=./template.pot