aboutsummaryrefslogtreecommitdiff
path: root/graphics/webp-pixbuf-loader/git2tarxz.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2019-12-29 11:13:44 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-29 11:13:44 +0700
commitbfcb447214296edd29bc4c148334fa87731bbce9 (patch)
tree981c38a933bdbdc9d2c1a42ee462be16f0287dc5 /graphics/webp-pixbuf-loader/git2tarxz.sh
parente51925f6cea571efc9231046e8e3fd77ba263dfb (diff)
graphics/webp-pixbuf-loader: Added (WEBP loader for gdk-pixbuf2).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/webp-pixbuf-loader/git2tarxz.sh')
-rw-r--r--graphics/webp-pixbuf-loader/git2tarxz.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/graphics/webp-pixbuf-loader/git2tarxz.sh b/graphics/webp-pixbuf-loader/git2tarxz.sh
new file mode 100644
index 000000000000..eda6a8cec9bd
--- /dev/null
+++ b/graphics/webp-pixbuf-loader/git2tarxz.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# Create source tarball from git repo, with generated version
+# number. We don't include the git history in the tarball.
+
+# Note that this script doesn't need to be run as root. It does
+# need to be able to write to the current directory it's run from.
+
+PRGNAM=webp-pixbuf-loader
+CLONE_URL=https://github.com/aruiz/$PRGNAM.git
+
+set -e
+
+GITDIR=$( mktemp -dt $PRGNAM.git.XXXXXX )
+rm -rf $GITDIR
+git clone $CLONE_URL $GITDIR
+
+CWD="$( pwd )"
+cd $GITDIR
+
+VERSION=$( git log --date=format:%Y%m%d --pretty=format:%cd.%h -n1 )
+
+rm -rf .git
+find . -name .gitignore -print0 | xargs -0 rm -f
+
+cd "$CWD"
+rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION.tar.xz
+mv $GITDIR $PRGNAM-$VERSION
+tar cvfJ $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION
+
+cat <<EOF
+
+Archive created: $PRGNAM-$VERSION.tar.xz
+
+Update $PRGNAM.info with:
+
+VERSION="$VERSION"
+DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/$PRGNAM-$VERSION.tar.xz"
+MD5SUM="$( md5sum $PRGNAM-$VERSION.tar.xz | cut -d' ' -f1 )"
+
+Don't forget to upload the new source!
+EOF