Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
For those on UNIX, here is a nifty little plugin packager that I wrote. It produced the upage.tar.Z file that I released a little while ago. Makes it so the install does not have to move files or directories around as is usually the case for plugins.

I call it "glplwrap", and you can just type "glplwrap" for usage info.

Text Formatted Code

#!/usr/local/bin/bash

if [ $# -ne 2 ]
then
        echo "Usage : $0 <path/to/gl> <pluginname>"
        echo "to tar up the given plugin"
        exit 10;
fi

GLPATH=$1
GLPL=$2
GLPLPARTS="plugins/${GLPL} public_html/${GLPL} public_html/admin/plugins/${GLPL}"
MYPATH=`pwd`
TARFILE=${MYPATH}/${GLPL}.tar.Z
TAR=/usr/bin/tar

cd $GLPATH
${TAR} czf ${TARFILE} ${GLPLPARTS}

cd $MYPATH