Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- REMOVE="/usr/lfspackages/remove"
- check="$(curl -L -s http://ftp.gnu.org/gnu/nano/ | tr "<>" "\ " | grep "nano" | awk '{print $8}' | grep -v ".sig" | grep -v "/a" | sed 's/\.tar\.gz//' | sort -V | tail -n 1)"
- configure() {
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --enable-utf8 \
- --docdir=/usr/share/doc/$check
- }
- build() {
- make
- make install | tee $REMOVE/$check.rm
- install -v -m644 doc/nanorc.sample /etc
- install -v -m644 doc/texinfo/nano.html /usr/share/doc/$check
- }
- configure
- if [ $? -ne 0 ]; then
- build
- else
- exit
- fi
Advertisement
Add Comment
Please, Sign In to add comment