这是根据网上的资料写的一个自动将文件上传到sf.net上的脚本:
#!/bin/sh
HOST=frs.sourceforge.net
USER=username
PASS=password
echo “Starting to sftp…“
lftp -u ${USER},${PASS} sftp://${HOST} < cd uploads put libskin_0.1.0-1.dsc put libskin_0.1.0-1_i386.changes put libskin_0.1.0-1_i386.deb put libskin-0.1.0.tar.gz put libskin-dev_0.1.0-1_i386.deb put lmplayer_0.7.0-1.dsc put lmplayer_0.7.0-1_i386.changes put lmplayer_0.7.0-1_i386.deb put lmplayer-0.7.0.tar.bz2 bye EOF echo “done“