File: mkpkg.sh

package info (click to toggle)
ruby-sdl 2.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,344 kB
  • ctags: 4,200
  • sloc: cpp: 7,598; ansic: 4,475; ruby: 2,258; sh: 102; makefile: 97
file content (28 lines) | stat: -rwxr-xr-x 470 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

if [ "$1" = "" ];then
    echo "Usage: $0 VERSION [TAG]"
    exit 1
fi
VERSION=$1

if [ "$2" = "" ];then
    TAG=$VERSION
else
    TAG=$2
fi

PACKAGE=rubysdl-$VERSION.tar.gz
DIRNAME=rubysdl-$VERSION

git archive --format=tar --prefix=$DIRNAME/ $TAG | tar xf -

export RBENV_VERSION=system 
LANG=ja_JP.eucJP make -C $DIRNAME/doc
make install -C $DIRNAME/doc 
make -C $DIRNAME/doc-en
make install -C $DIRNAME/doc-en


tar czf $PACKAGE $DIRNAME/*
rm -r $DIRNAME