File: dummy_export

package info (click to toggle)
bidiui 0.9.7-2.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 712 kB
  • sloc: javascript: 2,763; perl: 1,048; sh: 156; makefile: 41
file content (37 lines) | stat: -rwxr-xr-x 948 bytes parent folder | download | duplicates (5)
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
#!/bin/sh -e
#
# Workaround for a mozdev cvs tagging bug, see
# https://www.mozdev.org/bugs/show_bug.cgi?id=14797
# and
# http://www.mozdev.org/drupal/wiki/MozdevCVSTipsTroubleshooting
# for details

set -o errexit

if [ -z $1 ]; then
	echo "Enter CVS username"
	exit
fi

CVS_USERNAME=$1
CVSROOT=":pserver:${CVS_USERNAME}@www.mozdev.org:/cvs"
CVS_MODULE_NAME="bidiui"
SRCDIR=`pwd`
# the following are paths relative to the source dir ${SRCDIR}
TEMPDIR="${SRCDIR}/tmp"

# determine version number
VERSION=`grep VERSION=\" dobuild | cut -d\" -f2 | head -1`
SHORTNAME=`grep SHORTNAME=\" dobuild | cut -d\" -f2`
USCORED_VERSION=`echo $VERSION | tr . _`
CAPS_SHORTNAME=`echo ${SHORTNAME} | tr a-z A-Z`
RELEASE_TAG="${CAPS_SHORTNAME}_RELEASE_${USCORED_VERSION}"

if [ ! -d ${TEMPDIR} ]; then
        mkdir ${TEMPDIR}
fi
cd ${TEMPDIR}
cvs -d $CVSROOT export -r ${RELEASE_TAG} -d ${CVS_MODULE_NAME} ${CVS_MODULE_NAME}/source
cd ${SRCDIR}
rm -r ${TEMPDIR}