Welcome to Geeklog, Anonymous Wednesday, December 04 2024 @ 01:21 pm EST

Geeklog Forums

Nifty Little Plugin Packager


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

 
 Quote

All times are EST. The time is now 01:21 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content