minix/external/public-domain/xz/prepare-import.sh
Ben Gras 5a645f22a8 gzip boot modules.
. import gzip
2012-02-17 12:32:35 +00:00

33 lines
804 B
Bash

#!/bin/sh
# $NetBSD: prepare-import.sh,v 1.1 2010/11/02 16:34:36 joerg Exp $
set -e
rm -rf dist tmp
tar xzf xz-5.0.0.tar.gz
mv xz-5.0.0 dist
cd dist
# Binary files derived from distribution files
rm -rf doc/man
# Files under GPL
rm -rf build-aux extra lib m4/[a-s]* m4/[u-z]* src/scripts/xz* Doxyfile.in
# Files not of relevance
rm -rf ABOUT-NLS aclocal.m4 autogen.sh configure COPYING.*GPL* INSTALL.generic
mkdir po.tmp
mv po/*.po po/*.gmo po.tmp/
rm -rf po
mv po.tmp po
rm -rf debug dos windows
rm -rf Makefile* */Makefile* */*/Makefile* */*/*/Makefile*
# Binary files to be encoded
for f in tests/compress_prepared_bcj_sparc tests/compress_prepared_bcj_x86 \
tests/files/*.xz; do
uuencode -m $f $f > $f.base64
rm $f
done
# Files under GPL/LGPL kept:
# build-aux/* from autoconf
# lib/*
# m4/*