File generate-tarball.sh of Package darktable
#!/bin/sh VERSION=$1 tar -xJvf darktable-$VERSION.tar.xz rm -rf darktable-$VERSION/src/external/squish tar -cJvf darktable-$VERSION-nopatents.tar.xz darktable-$VERSION rm -rf darktable-$VERSION/ rm darktable-$VERSION.tar.xz