File: update-cvs-files

package info (click to toggle)
signify-openbsd 13-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 528 kB
  • ctags: 489
  • sloc: ansic: 4,250; makefile: 99; sh: 11
file content (21 lines) | stat: -rwxr-xr-x 468 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh
#
# update-cvs-files
# Copyright (C) 2014 Adrian Perez <aperez@igalia.com>
#
# Distributed under terms of the MIT license.
#
set -e

: ${CVSWEB_URL:='http://openbsd.cs.toronto.edu/cgi-bin/cvsweb'}
CVSWEB_URL="${CVSWEB_URL}/~checkout~"

while read -r cvs_path ; do
	filename=${cvs_path##*/}
	if [[ -z ${filename} ]] ; then
		continue
	fi
	echo "* ${filename} ($cvs_path)"
	curl -\# -o "${filename}" "${CVSWEB_URL}/${cvs_path}"
done