File: fill_template

package info (click to toggle)
jackd2 1.9.10%2B20150825git1ed50c92~dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,820 kB
  • ctags: 12,709
  • sloc: cpp: 54,834; ansic: 28,683; python: 25,251; sh: 147; makefile: 68; objc: 39
file content (5 lines) | stat: -rw-r--r-- 191 bytes parent folder | download
1
2
3
4
5
#!/bin/sh

for i in *.0 ; do
   sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`LC_ALL=C date --utc --date="$(dpkg-parsechangelog -l../debian/changelog -SDate)" '+%B %Y'`/g" < ${i} > ${i%%0}1
done