source: src-sh/pbi-manager10/mkport.sh @ 651bd28

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 651bd28 was 651bd28, checked in by Kris Moore <kris@…>, 8 months ago

Add a new pbi-manager10 copy, this will be used for FreeBSD > 10

  • Property mode set to 100755
File size: 872 bytes
Line 
1#!/bin/sh
2# Make files to update FreeBSD Port
3
4ver=`cat port-files/Makefile | grep PORTVERSION | cut -d '=' -f 2 | tr -d '\t'`
5
6# Make the distfile
7mkdir /tmp/pbi-manager-${ver}
8
9tar cvf - --exclude .svn INSTALL Makefile install.sh pbi-manager etc icons man1 man5 man8 module-examples rc.d repo wrapper 2>/dev/null| tar xvf - -C /tmp/pbi-manager-${ver} 2>/dev/null
10tar cvjf pbi-manager-${ver}.tar.bz2 -C /tmp pbi-manager-${ver} 2>/dev/null
11rm -rf /tmp/pbi-manager-${ver}
12
13echo "Distfile: pbi-manager-${ver}.tar.bz2"
14
15# Make the distinfo file
16sha256=`sha256 -q pbi-manager-${ver}.tar.bz2`
17size=`ls -ALln pbi-manager-${ver}.tar.bz2 | awk '{print $5}'`
18
19echo "SHA256 (pbi-manager-${ver}.tar.bz2) = ${sha256}
20SIZE (pbi-manager-${ver}.tar.bz2) = ${size}" > port-files/distinfo
21
22tar cvzf port-$ver.tgz --exclude .svn -C port-files . 2>/dev/null
23echo "Port Files: port-$ver.tgz"
Note: See TracBrowser for help on using the repository browser.