-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (28 loc) · 840 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
NAME=ZIM
VERSION=0.0.12.c
all::
@echo "make install deinstall edit backup git change push pull"
requirements::
sudo apt -y install libxapian-dev
sudo cpan Search::Xapian JSON Time::HiRes # IO::Uncompress::AnyUncompress
install::
mkdir -p ~/lib/perl5
cp ZIM.pm ~/lib/perl5/
cp zim ~/bin/
deinstall::
rm -f ~lib/perl5/ZIM.pm
rm -f ~/bin/zim
backup::
cd ..; tar cfvz ~/Backup/${NAME}-${VERSION}.tar.gz --exclude=*.zim --exclude=*.index --exclude=*xapian ${NAME}; scp ~/Backup/${NAME}-${VERSION}.tar.gz backup:Backup;
edit::
dee4 zim ZIM.pm Makefile README.md
git::
#git remote add origin git@git:${NAME}
#git remote add origin [email protected]:Spiritdude/${NAME}.git
git remote set-url origin [email protected]:Spiritdude/${NAME}.git
change::
git commit -am "..."
push::
git push -u origin master
pull::
git pull