Skip to content

Commit

Permalink
Exclude build directories from release tar
Browse files Browse the repository at this point in the history
  • Loading branch information
caclark committed Aug 12, 2022
1 parent 0861db1 commit 7121012
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/new-release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

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

error_handler ()
{
echo "Error on line: $1"
exit 1
}
trap 'error_handler ${LINENO}' ERR


version=
start=
patch=
Expand Down Expand Up @@ -149,6 +157,7 @@ fi

rm -rf /tmp/geeqie-"$revision".tar.xz
rm -rf /tmp/geeqie-"$revision".tar.xz.asc
rm -rf build

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

0 comments on commit 7121012

Please sign in to comment.