Created
February 22, 2016 23:18
-
-
Save mikysal78/ab0cdfe90a327a711bf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
if [ "$(id -u)" == "0" ]; then | |
echo "Sei root, devi lanciarlo come user normale" 1>&2 | |
exit 1 | |
fi | |
sudo apt-get install dh-systemd libnl-3-dev libnl-genl-3-dev libnl-utils pkg-config doxygen build-essential devscripts cmake | |
PATH_OLSR="$HOME/olsr2" | |
if [ -d $PATH_OLSR ]; then | |
cd $PATH_OLSR && git pull | |
fi | |
if [ ! -d $PATH_OLSR ]; then | |
mkdir $PATH_OLSR | |
cd $PATH_OLSR | |
git clone git://olsr.org/oonf.git | |
fi | |
cd oonf/files/ | |
./create_debian_package.sh && \ | |
cd ../../ | |
mv oonf/*.deb $HOME | |
cd | |
clear | |
echo "" | |
echo "" | |
echo "il file DEB è nella directory $HOME" | |
FILEDEB="ls olsrd2_*.deb" | |
echo "" | |
echo "per installare usa il comando:" | |
echo "" | |
echo " sudo dpkg -i $FILEDEB" | |
rm -rf /tmp/oonf_build_debian/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Da testare su una macchina vergine per verificare che i pacchetti di compilazione vengano installati tutti