forked from denouche/sfr-neufbox-change-ip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
20 lines (18 loc) · 799 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
LIBS_FOLDER="$(HOME)/bin/neufbox_change_bruit"
TMP_FOLDER="$(LIBS_FOLDER)/tmp"
install: clean
mkdir -p $(LIBS_FOLDER)
cp neufbox_change_marge_bruit.sh $(LIBS_FOLDER)/
chmod +x $(LIBS_FOLDER)/neufbox_change_marge_bruit.sh
ln -s $(LIBS_FOLDER)/neufbox_change_marge_bruit.sh $(HOME)/bin/neufbox_change_marge_bruit.sh
cp -r templates/ $(LIBS_FOLDER)
wget -q -P $(LIBS_FOLDER)/ https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
tar -C $(LIBS_FOLDER) -xjf $(LIBS_FOLDER)/*.tar.bz2
rm -f $(LIBS_FOLDER)/phantomjs-1.9.7-linux-x86_64.tar.bz2
read -p "Login: " login;\
read -p "Pass: " pass;\
echo -n $$login:$$pass > $(LIBS_FOLDER)/.credentials
echo Installed in $(LIBS_FOLDER)
clean:
rm -fr $(LIBS_FOLDER)
rm -f "$(HOME)/bin/neufbox_change_marge_bruit.sh"