aboutsummaryrefslogtreecommitdiff
path: root/mkport.sh
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-06-20 11:51:28 -0400
committerKen Moore <moorekou@gmail.com>2016-06-20 11:51:28 -0400
commiteec8410951b887a2fd70798ab77366b2685dbb63 (patch)
treead2b47fd3837118f62c7931e2245886144d211a3 /mkport.sh
parentOops - forgot to add a couple new .desktop files to the git repo. (diff)
downloadlumina-eec8410951b887a2fd70798ab77366b2685dbb63.tar.gz
lumina-eec8410951b887a2fd70798ab77366b2685dbb63.tar.bz2
lumina-eec8410951b887a2fd70798ab77366b2685dbb63.zip
Large update to all the port-files.
1) Move all the port files (.spec, .ebuild, debian dir, etc..) into the port-files dir. 2) Move all the FreeBSD port files into a "port-files/FreeBSD" sub-dir 3) Update all the build/install scripts (as much as possible - needs review by the porters) to account for the directory heirarchy change 4) Update the .gitignore file a bit so it is also aware of the new directory heirarchy
Diffstat (limited to 'mkport.sh')
-rwxr-xr-xmkport.sh66
1 files changed, 0 insertions, 66 deletions
diff --git a/mkport.sh b/mkport.sh
deleted file mode 100755
index 0764378b..00000000
--- a/mkport.sh
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-# Helper script which will create the port / distfiles
-# from a checked out git repo
-
-# Set the distfile URL we will fetch from
-DURL="http://www.pcbsd.org/~kris/software/"
-
-get_last_rev_git()
-{
- oPWD=`pwd`
- cd "${1}"
- rev=0
- rev=`git log -n 1 --date=raw | grep 'Date:' | awk '{print $2}'`
- cd $oPWD
- if [ $rev -ne 0 ] ; then
- echo "$rev"
- return 0
- fi
- return 1
-}
-
-if [ -z "$1" ] ; then
- echo "Usage: ./mkports.sh <outdir>"
- exit 1
-fi
-
-if [ ! -d "${1}" ] ; then
- echo "Invalid directory: $1"
- exit 1
-fi
-
-portsdir="${1}"
-distdir="${1}/distfiles"
-if [ ! -d "$portsdir" ] ; then
- mkdir ${portsdir}
-fi
-if [ ! -d "$portsdir/sysutils" ] ; then
- mkdir ${portsdir}/sysutils
-fi
-if [ ! -d "$distdir" ] ; then
- mkdir ${distdir}
-fi
-
-REV=`get_last_rev_git "."`
-
-# Make the dist files
-rm ${distdir}/lumina*.tar.bz2 2>/dev/null
-echo "Creating lumina dist file for version: $REV"
-cd ..
-tar cvjf ${distdir}/lumina-${REV}.tar.bz2 --exclude .git --exclude Artwork lumina 2>/dev/null
-cd lumina
-
-# Copy ports files
-rm -rf ${portsdir}/x11/lumina 2>/dev/null
-cp -r port-files ${portsdir}/x11/lumina
-
-# Set the version numbers
-sed -i '' "s|CHGVERSION|${REV}|g" ${portsdir}/x11/lumina/Makefile
-
-# Set the mirror to use
-sed -i '' "s|http://www.pcbsd.org/~kris/software/|${DURL}|g" ${portsdir}/x11/lumina/Makefile
-
-# Create the makesums / distinfo file
-cd ${distdir}
-sha256 lumina-${REV}.tar.bz2 > ${portsdir}/x11/lumina/distinfo
-echo "SIZE (lumina-${REV}.tar.bz2) = `stat -f \"%z\" lumina-${REV}.tar.bz2`" >> ${portsdir}/x11/lumina/distinfo
bgstack15