File: package.sh

package info (click to toggle)
ruby-tokyocabinet 1.31-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,636 kB
  • ctags: 942
  • sloc: ruby: 3,594; ansic: 3,387; sh: 29; makefile: 2
file content (20 lines) | stat: -rwxr-xr-x 273 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh

LANG=C
LC_ALL=C
PATH="$PATH:/usr/local/bin:$HOME/bin:.:.."
export LANG LC_ALL PATH

if [ -f Makefile ]
then
  make distclean
fi

rm -rf casket casket* *~ *.tmp *.gem hoge moge

name="${PWD##*/}"
cd ..
if [ -d "$name" ]
then
  tar zcvf "$name.tar.gz" "$name"
fi