From dfc154c470bd761888b5b0219eed71c2ff05c959 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Thu, 8 Sep 2011 00:05:16 -0400 Subject: [PATCH] Add packaging script Add list of files to exclude in git export --- .gitattributes | 3 +++ package.sh | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .gitattributes create mode 100755 package.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..54523fe --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +.gitattributes export-ignore +.gitignore export-ignore +package.sh export-ignore diff --git a/package.sh b/package.sh new file mode 100755 index 0000000..1109479 --- /dev/null +++ b/package.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +PACKAGE="grip-3.4.0" + +# Create temporary export archive +git archive --format=tar --prefix=${PACKAGE}/ master | bzip2 -9 > ${PACKAGE}-git.tar.bz2 + +# Generate autoconf files for distribution +tar -xvf ${PACKAGE}-git.tar.bz2 +cd ${PACKAGE} +./autogen.sh + +# Generate translation files (po) +./configure +make -C po +make distclean + +cd ../ +tar cvf - ${PACKAGE} | bzip2 -9 > ${PACKAGE}.tar.bz2 + +# Cleanup +rm -rf ${PACKAGE} +rm -f ${PACKAGE}-git.tar.bz2 -- 2.20.1