File: copybyhand.example

package info (click to toggle)
reprepro 5.4.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,700 kB
  • sloc: ansic: 53,795; python: 1,625; sh: 1,417; makefile: 120
file content (28 lines) | stat: -rwxr-xr-x 710 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# This is an example script for a byhandhook.
# Add to you conf/distributions something like
##ByhandHooks:
## * * * copybyhand.sh
# and copy this script as copybyhand.sh in your conf/
# directory (or give the full path), and processincoming
# will copy all byhand/raw files to dists/codename/extra/*

set -e

if [ $# != 5 ] ; then
	echo "to be called by reprepro as byhandhook" >&2
	exit 1
fi
if [ -z "$REPREPRO_DIST_DIR" ] ; then
	echo "to be called by reprepro as byhandhook" >&2
	exit 1
fi

codename="$1"
section="$2"
priority="$3"
basefilename="$4"
fullfilename="$5"

mkdir -p "$REPREPRO_DIST_DIR/$codename/extra"
install -T -- "$fullfilename" "$REPREPRO_DIST_DIR/$codename/extra/$basefilename"