Skip to content

Commit 7121012

Browse files
committed
Exclude build directories from release tar
1 parent 0861db1 commit 7121012

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/new-release.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
## @file
44
## @brief Create a new release
@@ -17,6 +17,14 @@
1717
## It is expected that the first line of NEWS is in the form "Geeqie \<a.b[.d]\>
1818
##
1919

20+
error_handler ()
21+
{
22+
echo "Error on line: $1"
23+
exit 1
24+
}
25+
trap 'error_handler ${LINENO}' ERR
26+
27+
2028
version=
2129
start=
2230
patch=
@@ -149,6 +157,7 @@ fi
149157

150158
rm -rf /tmp/geeqie-"$revision".tar.xz
151159
rm -rf /tmp/geeqie-"$revision".tar.xz.asc
160+
rm -rf build
152161

153162
# shellcheck disable=SC2140
154163
tar --create --xz --file=/tmp/geeqie-"$revision".tar.xz --exclude=".git" --exclude="configure" --exclude="web" --transform s/"\bgeeqie\b"/"geeqie-$revision"/ ../geeqie

0 commit comments

Comments
 (0)