source: orange/install-scripts/mac/fink-register-info.sh @ 10622:8106e82914d6

Revision 10622:8106e82914d6, 839 bytes checked in by Ales Erjavec <ales.erjavec@…>, 2 years ago (diff)

Renamed the fink .info packages replaced (hg with dev).

  • Property exe set to *
RevLine 
[10447]1#!/bin/bash -e
2#
3# Register new revision of the fink package
4#
5# $1 fink-info file template
6# $2 source package url
7# $3 source package md5
8# $4 fink package version
9# $5 final .info file (optional /sw/fink/dists/local/main/finkinfo/$1 will be used
10#
[10622]11# Example: ./register-fink-info fink/orange-gui-dev-py.info http://orange.biolab.si/downloads/sources/Orange-2.5a.tar.gz 2fa4783166c07585ae349723495cf2b8 2.5a /sw/fink/dists/local/main/finkinfo/orange-gui-dev-py.info
[10447]12
13INFO=$1
14SOURCE=$2
15MD5=$3
16VERSION=$4
17
18if [ $5 ]; then
19    echo "fink: $5"
20    PUBLISH=$5
21else
22    PUBLISH="/sw/fink/dists/local/main/finkinfo/$1"
23fi
24
25echo $PUBLISH
26
27# Escape the / characters in source
28SOURCE_ESCAPED=`echo $SOURCE | sed s/'\/'/'\\\\\/'/g`
29
30
31cat $INFO | sed s/__SOURCE__/$SOURCE_ESCAPED/g | \
32    sed s/__VERSION__/$VERSION/g | sed s/__MD5SUM__/$MD5/g > $PUBLISH
33
34true
Note: See TracBrowser for help on using the repository browser.