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

📄 maketgz

📁 邮件发送后向相应手机发送短信
💻
字号:
#! /bin/sh# Script to build release-archives with#echo "Version number?"read versionHEADER="main.h"# Replace version number in header file:sed 's/#define VERSION.*/#define VERSION "'$version'"/g' $HEADER >$HEADER.new# Save old header filecp -p $HEADER $HEADER.old# Make new header:mv $HEADER.new $HEADER# get current dirdir=`pwd`# Get basenameorig=`basename $dir`# Get the left part of the dash (-)new=`echo $orig | cut -d- -f1`# Build new directory namen=$new-$version;# Tell the world what we're doingecho "creates $n.tar.gz";if [ -r $n ]; then  echo "Directory already exists!"  exitfi# Create the new dirmkdir $n# Copy all relevant files, with path and permissions!tar -cf - `cat FILES` | (cd $n; tar -xBpf -)# Make a tar archive of it alltar -cvf $n.tar $n# gzip the archivegzip $n.tar# Make it world readablechmod a+r $n.tar.gz ;# Delete the temp dirrm -rf $n

⌨️ 快捷键说明

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