nixpkgs/pkgs/applications/editors/eclipse/plugins/installers/builder.sh
Martin Bravenboer 06b5fa3519 Added support for Eclipse plugins with custom installers.
svn path=/nixpkgs/trunk/; revision=4907
2006-02-25 00:44:02 +00:00

22 lines
256 B
Bash

source $stdenv/setup
ensureDir $out
cat >> $out/install <<EOF
#! /bin/sh
PLUGIN=$plugin
UNZIP=$unzip/bin/unzip
ECLIPSE=\$1
\$UNZIP \$PLUGIN
if test -e plugins; then
cp -prd * \$ECLIPSE
else
cd *
cp -prd * \$ECLIPSE
fi
EOF
chmod u+x $out/install