1#!/bin/sh 2# $NetBSD: prepare-import.sh,v 1.4 2015/04/17 18:49:23 christos Exp $ 3 4set -e 5 6rm -rf dist tmp 7tar xzf xz-5.2.1.tar.gz 8mv xz-5.2.1 dist 9 10cd dist 11# Binary files derived from distribution files 12rm -rf doc/man 13# Files under GPL 14rm -rf build-aux extra lib m4/[a-s]* m4/[u-z]* src/scripts/xz* Doxyfile.in 15# Files not of relevance 16rm -rf ABOUT-NLS aclocal.m4 autogen.sh configure COPYING.*GPL* INSTALL.generic 17mkdir po.tmp 18mv po/*.po po/*.gmo po.tmp/ 19rm -rf po 20mv po.tmp po 21rm -rf debug dos windows 22rm -rf Makefile* */Makefile* */*/Makefile* */*/*/Makefile* 23# Binary files to be encoded 24for f in tests/compress_prepared_bcj_sparc tests/compress_prepared_bcj_x86 \ 25 tests/files/*.xz; do 26 uuencode -m $f $f > $f.base64 27 rm $f 28done 29 30# Files under GPL/LGPL kept: 31# build-aux/* from autoconf 32# lib/* 33# m4/* 34 35# Changes to config.h 36echo Add build-time endian test to include/config.h: 37cat << EOE 38#include <sys/endian.h> 39#if BYTE_ORDER == BIG_ENDIAN 40# define WORDS_BIGENDIAN 1 41#endif 42EOE 43