diff options
author | Ken Moore <ken@ixsystems.com> | 2017-05-13 20:11:21 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-05-13 20:11:21 -0400 |
commit | 11d2bf107f233c0fc0d233a2edb5cf812fb69acb (patch) | |
tree | cbc15ca470ba7216cc9cbfed9f4c1ab2f3b553d6 /mkport.sh | |
parent | Fix a syntax error in the resulting .desktop file (diff) | |
download | lumina-11d2bf107f233c0fc0d233a2edb5cf812fb69acb.tar.gz lumina-11d2bf107f233c0fc0d233a2edb5cf812fb69acb.tar.bz2 lumina-11d2bf107f233c0fc0d233a2edb5cf812fb69acb.zip |
Split up the FreeBSD port files into a total of 12 ports
x11/lumina (meta port for all of them)
x11/lumina-core (core desktop: lumina-open, lumina-desktop, start-lumina-desktop, themes, icons, etc..)
x11/lumina-coreutils (core configuration utilities: lumina-config, lumina-xconfig, lumina-search)
deskutils/lumina-archiver
deskutils/lumina-calculator
deskutils/lumina-fileinfo
deskutils/lumina-fm
deskutils/lumina-mediaplayer
deskutils/lumina-notify
deskutils/lumina-screenshot
deskutils/lumina-textedit
deskutils/lumina-xdg-entry
Diffstat (limited to 'mkport.sh')
-rwxr-xr-x | mkport.sh | 54 |
1 files changed, 33 insertions, 21 deletions
@@ -3,8 +3,9 @@ # from a checked out git repo # Set the port -port="x11/lumina" +#port="x11/lumina" dfile="lumina" +VERSION="1.2.1" massage_subdir() { cd "$1" @@ -66,30 +67,41 @@ ghtag=`git log -n 1 . | grep '^commit ' | awk '{print $2}'` if [ -e "version" ] ; then verTag=$(cat version) else - verTag=$(date '+%Y%m%d%H%M') + verTag=`git describe --always` + if [ "z${verTag}" != "z" ] ; then + verTag="${VERSION}.${verTag}" + else + verTag="${VERSION}" + fi fi # Cleanup old distfiles rm ${distdir}/${dfile}-* 2>/dev/null # Copy ports files -if [ -d "${portsdir}/${port}" ] ; then - rm -rf ${portsdir}/${port} 2>/dev/null -fi -cp -r port-files/FreeBSD ${portsdir}/${port} - -# Set the version numbers -sed -i '' "s|%%CHGVERSION%%|${verTag}|g" ${portsdir}/${port}/Makefile -sed -i '' "s|%%GHTAG%%|${ghtag}|g" ${portsdir}/${port}/Makefile - -# Create the makesums / distinfo file -cd "${portsdir}/${port}" -make makesum -if [ $? -ne 0 ] ; then - echo "Failed makesum" - exit 1 -fi +orig_dir=`pwd` +for port in `find port-files/FreeBSD | grep Makefile | cut -d / -f 3-4` +do + cd ${orig_dir} + echo "Copying port: ${port}" + if [ -d "${portsdir}/${port}" ] ; then + rm -rf ${portsdir}/${port} 2>/dev/null + fi + cp -r port-files/FreeBSD/${port} ${portsdir}/${port} + + # Set the version numbers + sed -i '' "s|%%CHGVERSION%%|${verTag}|g" ${portsdir}/${port}/Makefile + sed -i '' "s|%%GHTAG%%|${ghtag}|g" ${portsdir}/${port}/Makefile + + # Create the makesums / distinfo file + cd "${portsdir}/${port}" + make makesum + if [ $? -ne 0 ] ; then + echo "Failed makesum" + exit 1 + fi -# Update port cat Makefile -tcat=$(echo $port | cut -d '/' -f 1) -massage_subdir ${portsdir}/${tcat} + # Update port cat Makefile + tcat=$(echo $port | cut -d '/' -f 1) + massage_subdir ${portsdir}/${tcat} +done |