File: DIST

package info (click to toggle)
gauche-gtk 0.6%2Bgit20160927-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,428 kB
  • ctags: 1,357
  • sloc: ansic: 7,101; lisp: 5,659; sh: 2,829; makefile: 341
file content (46 lines) | stat: -rwxr-xr-x 1,297 bytes parent folder | download | duplicates (3)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
TGZ_DEST="$HOME/shiro.dreamhost.com/scheme/vault/"
MAN_DEST="$HOME/shiro.dreamhost.com/scheme/gauche/man/"
CHANGELOG_DEST="$HOME/shiro.dreamhost.com/scheme/gauche/ChangeLog.Gauche-gtk.txt"

while [ $# -gt 0 ]; do
  case $1 in
    gen) gen=yes; shift;;
    doc) docs=yes; shift ;;
    tgz) tgz=yes; shift ;;
    test) test=yes; shift ;;
    testclean) testclean=yes; shift ;;
    *) echo "DIST [doc][tgz][test][testclean]"; exit 0;;
  esac
done

if [ "$gen" = "yes" ]; then
  autoconf -I `gauche-config --ac`
fi

if [ "$tgz" = "yes" ]; then
  if [ -f Makefile ]; then make maintainer-clean; fi
  autoconf -I `gauche-config --ac`
  ./configure

  if [ ! -f VERSION ]; then echo "No VERSION; something wrong?"; exit 1; fi
  VERSION=`cat VERSION`

#  (cd doc; make html)
  (cd src; make stubs)
#  escm -o INSTALL INSTALL.esc
#  LANG=ja_JP escm -o INSTALL.eucjp INSTALL.esc
  make distclean

  rm -rf ../Gauche-gtk-$VERSION
  rm -f DIST_EXCLUDE_X
  cat DIST_EXCLUDE > DIST_EXCLUDE_X
  find . -name CVS -print -prune >> DIST_EXCLUDE_X

  mkdir ../Gauche-gtk-$VERSION
  tar cvfX - DIST_EXCLUDE_X . | (cd ../Gauche-gtk-$VERSION; tar xf -)
  (cd ..; tar cvf - Gauche-gtk-$VERSION | gzip -9 > Gauche-gtk-$VERSION.tgz)
#  mv ../Gauche-gtk-$VERSION.tgz $TGZ_DEST
#  cp ChangeLog $CHANGELOG_DEST
fi