mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 03:25:23 +00:00
25 lines
490 B
Bash
25 lines
490 B
Bash
#!/bin/sh
|
|
PREFIX={prefix}
|
|
VERSION={version}
|
|
NAME={name}
|
|
EXEC={exec}
|
|
|
|
if [ $1 == "uninstall" ]
|
|
then
|
|
echo "Uninstalling $NAME"
|
|
rm -rf $PREFIX/bin/$EXEC
|
|
exit
|
|
fi
|
|
|
|
if [ $1 == "help" ]
|
|
then
|
|
echo "\`./install.sh uninstall' to uninstall the program."
|
|
echo "\`./install.sh' or \`./install.sh install' to install the program."
|
|
echo "\`./install.sh' help to show this page."
|
|
exit
|
|
fi
|
|
|
|
echo "Installing $NAME, version: $VERSION, into: $PREFIX/bin/$EXEC"
|
|
|
|
cp files/$EXEC $PREFIX/bin/
|