#!/bin/sh
# -*- shell-script-mode -*-
# @configure_output@
#
# Install a plwm Python script
# Copyright 1999,2000 Peter Liljenberg
# GPL, see file COPYING

if [ $# -ne 2 ]
then
    echo "Usage: $0 source dest"
    exit 1
fi

if [ -z "$1" -o "$1" = "no" ]
then
    echo "$0: skipping $2"
    exit 0
fi

echo "#!/usr/local/bin/python2.3" > $2
sed -e '1d' -e '/^###SETUP PATH/i\
if "" != "": sys.path.insert(1, "")\
if "/usr/local/lib/python2.3/site-packages" not in sys.path: sys.path.insert(1, "/usr/local/lib/python2.3/site-packages")' -e '/^###SETUP PATH/,/^###END SETUP PATH/d' < $1 >> $2
chmod 755 $2


syntax highlighted by Code2HTML, v. 0.9.1