From 05f6fb34ee79ee8112ef549e93f0a138be0e2abf Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 1 Aug 2024 15:40:13 +0000 Subject: automatic import of hplip --- hplip-repack.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 hplip-repack.sh (limited to 'hplip-repack.sh') diff --git a/hplip-repack.sh b/hplip-repack.sh new file mode 100755 index 0000000..7639dbe --- /dev/null +++ b/hplip-repack.sh @@ -0,0 +1,22 @@ +#!/usr/bin/bash + + +VERSION=$1 + +if [ "${VERSION:="*"}" == "*" ] +then + echo "Define a version of hplip as an argument." + exit 1 +fi + +# extract the original tarball +tar -xaf hplip-$VERSION.tar.gz || exit 1 + +# remove unwanted files +rm hplip-$VERSION/prnt/hpcups/ErnieFilter.{cpp,h} hplip-$VERSION/prnt/hpijs/ernieplatform.h || exit 1 + +# compress into a new tarball +tar -cjvf hplip-$VERSION-repack.tar.gz hplip-$VERSION || exit 1 + +# upload a new source tarball +#fedpkg new-sources hplip-$VERSION-repack.tar.gz || exit 1 -- cgit v1.2.3