File: verify-pre-dist.sh

package info (click to toggle)
evolution-data-server 3.56.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 46,532 kB
  • sloc: ansic: 365,302; xml: 578; cpp: 482; perl: 297; sh: 62; makefile: 61; python: 35; javascript: 29
file content (19 lines) | stat: -rwxr-xr-x 582 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

git diff --no-patch --exit-code HEAD

if [ ! $? -eq 0 ]; then
	echo "" 1>&2
	echo "***********************************************************************" 1>&2
	echo "  There are uncommitted changes which will not be part of the tarball  " 1>&2
	echo "***********************************************************************" 1>&2
	echo "" 1>&2

	if [ "$SKIP_COMMIT_TEST" = "1" ]; then
		echo "(Failed commit test skipped due to SKIP_COMMIT_TEST=1 being set.)" 1>&2
		exit 0
	else
		echo "(This test can be skipped when SKIP_COMMIT_TEST=1 is set.)" 1>&2
	fi
	exit 1
fi