File: make-clean-tarball

package info (click to toggle)
fontforge 0.0.20120101%2Bgit-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 35,756 kB
  • sloc: ansic: 556,562; sh: 236; makefile: 162; xml: 11; python: 11
file content (22 lines) | stat: -rwxr-xr-x 519 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# this should be run from the top-level directory (one above debian/)
# so run it as: debian/make-clean-tarball

vers=$(awk '/LibFF_VersionDate/{ print $3 }' fontforge/libffstamp.h)

## strip these files and directories from the produced archive:

skiplist="admintools
cidmap
cidmapsrc
debian
fonttools
gtkui
htdocs
mac-Resources
Packaging
Readme.VMS
test"

git archive --format=tar --prefix="fontforge-0.0.${vers}/" HEAD $(ls -1 | grep -vFx "${skiplist}" ) | gzip -n9 > ../fontforge_0.0.${vers}.orig.tar.gz