NetBSD/external/bsd/libarchive/prepare-import.sh

23 lines
542 B
Bash

#!/bin/sh
# $NetBSD: prepare-import.sh,v 1.1 2008/09/19 22:01:25 joerg Exp $
#
# Extract the new tarball and rename the libarchive-X.Y.Z directory
# to dist. Run this script and check for additional files and
# directories to prune, only relevant content is included.
set -e
mkdir tmp
cd tmp
../dist/configure
mv config.h ../include/config_netbsd.h
cd ..
rm -rf tmp
cd dist
rm -rf config.aux contrib doc examples windows
rm INSTALL Makefile.am Makefile.in README aclocal.m4 config.h.in
rm configure configure.ac version
rm tar/getdate.c