Index: vendor/bearssl/import.sh =================================================================== --- vendor/bearssl/import.sh (nonexistent) +++ vendor/bearssl/import.sh (revision 343277) @@ -0,0 +1,101 @@ +#!/bin/sh + +# $FreeBSD$ + +# Set SVN variables +# select the local subversion site +SVN=${SVN:-/usr/local/bin/svn} +GIT=${GIT:-/usr/local/bin/git} + +# For consistency... +Error() { + echo ERROR: ${1+"$@"} >&2 + exit 1 +} + +Cd() { + [ $# -eq 1 ] || Error "Cd() takes a single parameter." + cd $1 || Error "cannot \"cd $1\" from $PWD" +} + +SKIP_PULL= + +# Call this function and then follow it by any specific import script additions +option_parsing() { + local _shift=$# + # Parse command line options + while : + do + case "$1" in + *=*) eval "$1"; shift;; + --) shift; break;; + --skip-pull) SKIP_PULL=:; shift;; + --help|-h) cat < $TF.old +# use * rather than . to skip .git +('cd' BearSSL && find * -type f ) | sort > $TF.new +comm -23 $TF.old $TF.new > $TF.rmlist +comm -13 $TF.old $TF.new > $TF.addlist +[ -s $TF.rmlist ] && { echo rm:; cat $TF.rmlist; } +[ -s $TF.addlist ] && { echo add:; cat $TF.addlist; } +('cd' BearSSL && tar cf - * | tar xf - -C ../dist) +('cd' dist +test -s $TF.rmlist && xargs $SVN rm < $TF.rmlist +test -s $TF.addlist && xargs $SVN --parents add < $TF.addlist +) + +url=`$SVN info | sed -n '/^URL:/s,URL: ,,p'` +echo "After committing dist... run; sh ./tag.sh" +echo "$SVN cp -m 'tag $thing-$VERSION' $url/dist $url/$VERSION" > tag.sh + +rm -f $TF.* Property changes on: vendor/bearssl/import.sh ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property