1#!/bin/sh 2# $NetBSD: prepare-import.sh,v 1.6 2024/06/09 19:47:55 christos Exp $ 3# 4# Run this script on the extracted libarchive directory and check for 5# additional files and directories to prune, only relevant content is included. 6 7set -e 8PROG=$(basename "$0") 9 10if [ -z "$1" ]; then 11 echo "Usage $PROG <libarchive-directory>" 1>&2 12 exit 1 13fi 14 15cd "$1" 16 17rm -rf build contrib doc examples autom4te.cache unzip 18rm -f INSTALL Makefile.am Makefile.in aclocal.m4 config.h.in 19rm -f configure configure.ac CMakeLists.txt */CMakeLists.txt */*/CMakeLists.txt 20rm -f */config_freebsd.h CTestConfig.cmake .gitattributes .gitignore 21rm -f .travis.yml */*/.cvsignore 22