File: genexamples

package info (click to toggle)
claws-mail-extra-plugins 3.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 47,352 kB
  • sloc: ansic: 100,073; sh: 20,031; makefile: 6,918; perl: 990; yacc: 219; lex: 168
file content (13 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#
# generates a .examples file from .examples.in replacing token
# Usage: 
#       debian/genexamples plugin-name plugin-toplevel-build-dir
#       debian/genexamples plugin-name --clean
#
if [ "$2" = "--clean" ]; then rm -f debian/$1.examples; exit 0; fi
d=`echo $2`
sed -e "s,--TOPDIR--,$d," \
	< debian/$1.examples.in \
	> debian/$1.examples