File: release.sh

package info (click to toggle)
drupal7-mod-drucall 2.0.1-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 1,056 kB
  • sloc: sh: 23; pascal: 13; makefile: 9
file content (32 lines) | stat: -rwxr-xr-x 411 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
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash

set -e

VERSION=$1

if [ -z "${VERSION}" ];
then
  echo "please specify version to release"
  exit 1
fi

TAR_FILE=drucall-${VERSION}.tar.gz

cd ..

if [ -e ${TAR_FILE} ];
then
  echo "already exists: ${TAR_FILE}"
  exit 1
fi

tar czf $TAR_FILE \
   drucall/AUTHORS \
   drucall/COPYING \
   drucall/css \
   drucall/doc \
   drucall/drucall* \
   drucall/*.txt \
   drucall/js \
   drucall/sounds