基于 liblunar的显农历脚本

sh/bash/dash/ksh/zsh等Shell脚本
回复
emptyhua
帖子: 18
注册时间: 2008-06-10 12:31

基于 liblunar的显农历脚本

#1

帖子 emptyhua » 2010-05-03 22:39

曾经装了一个 liblunar ,用来在gnome panel里显示农历日历,今天升级到10.04,发现不灵了。由于liblunar提供了python的lib,于是简单写了一个命令行版的前端,顺便保持对python的熟悉程度。

下载:zhcal.zip

使用之前需要安装liblunar,编译选项

代码: 全选

./configure --prefix=/usr --enable-python
make
sudo make install
图片
头像
yu_cos
帖子: 28
注册时间: 2007-05-18 21:55
联系:

Re: 基于 liblunar的显农历脚本

#2

帖子 yu_cos » 2010-11-06 13:44

10.04 下的 liblunar-1-0 似乎不能使用这个脚本,一定要编译~~~不愿意啊~呵呵
tusooa
帖子: 6548
注册时间: 2008-10-31 22:12
系统: 践兔
联系:

Re: 基于 liblunar的显农历脚本

#3

帖子 tusooa » 2010-11-08 17:32

以前有人发过的。
顺便,python有点慢。自从arch升级到python3之后。
自己安装了lunar,用Perl过滤了输出,给prompt用。
lc-农历.py大概要等1,2秒钟。对于吾这样天天用命令行的人,受不了阿。
楼上的,可以
cp-编译.bash liblunar

代码: 全选

tlcr: 0 庚寅年十月三日 17:27 ~/应用/源码/gcode-svn/compile-program/脚本 
● ls
dog--1.7.Compile  dog--Latest.Compile  fcitx-utf8--svn.Compile  liblunar--2.2.4.Compile  liblunar--svn.Compile
tlcr: 0 庚寅年十月三日 17:27 ~/应用/源码/gcode-svn/compile-program/脚本 
● 

代码: 全选

] ls -ld //
回复