CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
e2fsprogs: updated to 1.42.5 and aligned with upstream
[crossrootfs.git] / httpup / httpup
CommitLineData
7bcbda68
VM
1#!/bin/sh
2#
3# /etc/ports/drivers/httpup: httpup driver script for ports(8)
4#
5
6if [ $# -ne 1 ]; then
7 echo "usage: $0 <file>" >&2
8 exit 1
9fi
10
11. $1
12
13if [ -z "$ROOT_DIR" ]; then
14 echo "ROOT_DIR not set in '$1'" >&2
15 exit 2
16fi
17if [ -z "$URL" ]; then
18 echo "URL not set in '$1'" >&2
19 exit 2
20fi
21
22for REPO in $URL; do
23 PORT=`echo $REPO | sed -n '/#.*$/s|^.*#||p'`
24 httpup sync $REPO $ROOT_DIR/$PORT
25done
26
27# End of file.