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