Author: jkim Date: Thu May 16 23:30:11 2013 New Revision: 250726 URL: http://svnweb.freebsd.org/changeset/base/250726
Log: Add a script to extract libregex from GNU libc. Added: vendor/libregex/libgnuregex_prep.sh (contents, props changed) Added: vendor/libregex/libgnuregex_prep.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/libregex/libgnuregex_prep.sh Thu May 16 23:30:11 2013 (r250726) @@ -0,0 +1,42 @@ +#!/bin/sh +# $FreeBSD$ + +DISTVERS=2.17 +DISTNAME=glibc-${DISTVERS} +DISTURL=http://ftp.gnu.org/gnu/libc/ +DISTSUFX=.tar.xz +DISTFILE=${DISTNAME}${DISTSUFX} +REGEXDIR=${DISTNAME}/posix +REGEXNAME=libgnuregex-${DISTVERS} +REGEXFILES=" \ + regcomp.c \ + regex.c \ + regex.h \ + regex_internal.c \ + regex_internal.h \ + regexec.c \ +" + +echo -n "Downloading ${DISTNAME}..." +fetch -q ${DISTURL}${DISTFILE} +echo " Done." + +echo -n "Extracting ${DISTNAME}..." +tar -x -f ${DISTFILE} ${REGEXDIR} +echo " Done." + +echo -n "Creating ${REGEXNAME}..." +tar -c -J --uid 0 --gid 0 -f ${REGEXNAME}${DISTSUFX} -C ${DISTNAME}/posix \ + -s "|^|${REGEXNAME}/|" ${REGEXFILES} +echo " Done." + +echo -n "Cleaning up..." +rm -fr ${DISTFILE} ${DISTNAME} +echo " Done." + +echo +echo "GNU libc is repackaged as ${REGEXNAME}${DISTSUFX}." +echo "Please follow vendor import guide of the Handbook." +echo + +exit 0 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"