File: package_mhwaveedit.sh

package info (click to toggle)
mhwaveedit 1.4.14-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,436 kB
  • ctags: 2,637
  • sloc: ansic: 23,716; sh: 3,731; makefile: 84; sed: 16
file content (31 lines) | stat: -rwxr-xr-x 690 bytes parent folder | download
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
#! /bin/bash

# Simple script to create tar/bz2-ball
# Must have version number as argument

if test "x$1" = "x"
then
	echo "Syntax: package_mhwaveedit.sh <version>"
	exit
fi
VERSION=$1

echo "Compiling..."
sh cvscompile
make distclean
rm -rf autom4te.cache po/*~ docgen/*~
chmod 755 mkinstalldirs po/mkinstalldirs missing

cd ..
echo "Packaging version $VERSION ..."
ln -s mhwaveedit mhwaveedit-$VERSION
tar cz --exclude '*CVS*' --exclude '*#*' -f mhwaveedit-$VERSION.tar.gz mhwaveedit-$VERSION/*
tar cj --exclude '*CVS*' --exclude '*#*' -f mhwaveedit-$VERSION.tar.bz2 mhwaveedit-$VERSION/*

if test -L mhwaveedit-$VERSION
then
	rm mhwaveedit-$VERSION
fi

ls -l mhwaveedit-$VERSION.tar.*