File: version-tex.sh

package info (click to toggle)
soundscaperenderer 0.6.0%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,148 kB
  • sloc: cpp: 36,430; sh: 4,522; makefile: 847; ansic: 762; javascript: 593; python: 57
file content (16 lines) | stat: -rwxr-xr-x 359 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

## this script creates a TeX-snippet to override the \today def
##  with the given version

VER=$1
if [ "x${VER}" = "x" ]; then
 VER=$(dpkg-parsechangelog -SVersion)
fi

echo "${VER}" \
| sed -e 's|~|$\\sim$|g' \
| sed -e 's|^\(.*\)$|\\def\\today{\1}|'

## \bf went missing...
echo '\\DeclareOldFontCommand{\\bf}{\\normalfont\\bfseries}{\\mathbf}'