File: exporter

package info (click to toggle)
yapps2 2.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 408 kB
  • sloc: python: 1,016; sh: 24; makefile: 13
file content (18 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

test -n "$1"
test -z "$3"
if test -z "$2" ; then T="+"; else T="$2"; fi
D="$1"

bk changes -v -r1.0..$T > "$D"/changelog
cd "$D"
if test ! -d doc ; then
	mkdir doc yapps
	mv yapps2.tex doc
	mv yappsrt.py yapps/runtime.py
	mv parsetree.py grammar.py yapps/
	rm yapps_grammar.py
fi