You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
292 B
Bash
15 lines
292 B
Bash
#!/bin/bash
|
|
if [[ "$1" == "help" ]]; then
|
|
echo "Usage: ./install installdir"
|
|
exit 0
|
|
fi
|
|
inst=$1
|
|
dir=$( pwd )
|
|
echo "$dir - $inst"
|
|
cp -r $dir $inst
|
|
cd $inst
|
|
sed -i "s-DIR=''-DIR='$inst'-g" $inst/smadonnamate.sh
|
|
for i in $( cat syms.lst ); do
|
|
sudo ln -s $inst/smadonnamate.sh /usr/bin/$i
|
|
done
|