ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ozone/mgar/gar/bin/custom-pkgtrans
Revision: 1
Committed: Sat Jun 20 14:58:51 2026 UTC (4 weeks, 3 days ago) by operz
File size: 760 byte(s)
Log Message:
Initial import of OZSW mgar build tree

File Contents

# Content
1 #!/bin/bash
2 #
3 # $Id: custom-pkgtrans 12072 2010-12-22 16:08:42Z wahwah $
4 #
5 # This file exists in order to avoid implementing pipelines in Python. It
6 # could be integrated into the package stats collection program.
7 #
8 # It has to use the same interpreter as lib/sh/libcheckpkg.sh, currently bash.
9
10 set -u
11 set -e
12
13 command_basename=`basename $0`
14 command_basedir="${0%/${command_basename}}"
15 libshdir="${command_basedir}/../lib/sh"
16 readonly command_basename command_basedir libshdir
17 . "${libshdir}/libcheckpkg.sh"
18
19 if [[ -z "$1" || -z "$2" || -z "$3" ]]; then
20 echo >&2 "usage: $0 <file.pkg> <targetdir> <pkgname>"
21 exit 1
22 fi
23 if [[ "$3" == "all" ]]; then
24 echo >&2 "This script can't handle 'all' as the third argument"
25 exit 1
26 fi
27 custom_pkgtrans "$1" "$2" "$3"

Properties

Name Value
svn:executable *