⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mkpackages.sh

📁 A GNOME panel applet that displays the CPU + memory load as a bubbling liquid. 一个Gnome面板程序
💻 SH
字号:
#! /bin/sh# This script attempts to build .deb, .rpm and .tar.gz packages from# the bubblemon.# FIXME: This script is extremely non-portable and is only guaranteed# to work at Johan's place.  Portability enhancements are greatly# appreciated, send them to d92-jwa@nada.kth.se.# FIXME: This script will erase files in your RPM_SOURCES directory,# in your BUBBLEMON_ROOT directory and in your RPMS directory.  For# this script to ever get any good it should probably be rewritten in# some real scripting language.# FIXME: If you don't have write permissions in your RPM_SOURCES# directory, in your BUBBLEMON_ROOT directory or in your RPMS# directory, I don't know what happens.BUBBLEMON_ROOT=/home/johan/src/Gnome/bubblemonRPM_SOURCES=/home/johan/src/RPM/SOURCESRPMS=/home/johan/src/RPM# See to that we are in the root bubblemon directoryif [ `pwd` != $BUBBLEMON_ROOT ] ; then    cat <<EOFThis script ($0) works only when started from the directory in the\$BUBBLEMON_ROOT variable (currently $BUBBLEMON_ROOT).The \$BUBBLEMON_ROOT variable can be configured at the top of thisscript.  It must *not* end with a slash (/).EOF    exit 1fi# Build a Debian packagedebuild -uc -usif [ $? != 0 ] ; then    echo Error: Debian package building failed > /dev/stderr    exit 1firm ../*.changes ../*.dsc ../*.dsc.asc ../bubblemon_*.tar.gz# Build a source packagemake -j2 distif [ $? != 0 ] ; then    echo Error: Source package building failed > /dev/stderr    exit 1fimv bubblemon-*.tar.gz ..# Build an RPMrm -f bubblemon-*.tar.gzmake -j2 distif [ $? != 0 ] ; then    echo Error: Source package building failed > /dev/stderr    exit 1filn -s $BUBBLEMON_ROOT/bubblemon-*.tar.gz $RPM_SOURCESrm -f $RPMS/RPM/*/bubblemon*rpm $RPMS/SRPM/bubblemon*rpmrpm -bs packaging/bubblemon.specif [ $? != 0 ] ; then    echo Error: RPM package building failed > /dev/stderr    rm -f bubblemon-*.tar.gz $RPM_SOURCES/bubblemon-*.tar.gz    exit 1fiecho Note that the following command may fail, but that is OKmv $RPMS/RPMS/*/bubblemon*rpm $RPMS/SRPMS/bubblemon*rpm ..rm bubblemon-*.tar.gz $RPM_SOURCES/bubblemon-*.tar.gzechoecho Package creation done, look in .. for the generated packages.echo

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -