changed install

master
andre 1 year ago
parent 02e14850d6
commit 25b213a9f1

@ -1,5 +1,14 @@
#!/bin/bash #!/bin/bash
if [[ "$1" == "help" ]]; then
echo "Usage: ./install installdir"
exit 0
fi
inst=$1
dir=$( pwd ) dir=$( pwd )
echo "$dir - $inst"
cp -r $dir $inst
cd $inst
sed -i "s-DIR=''-DIR='$inst/$dir'-g" $inst/smadonnamate.sh
for i in $( cat syms.lst ); do for i in $( cat syms.lst ); do
sudo ln -s $dir/smadonnamate.sh /usr/bin/$i sudo ln -s $inst/$dir/smadonnamate.sh /usr/bin/$i
done done

Loading…
Cancel
Save