Server IP : 103.119.228.120 / Your IP : 18.116.40.53 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/bin/ |
Upload File : |
#! /bin/sh # rcsfreeze - assign a symbolic revision number to a configuration of RCS files # # Copyright (C) 2010-2013 Thien-Thi Nguyen # # This file is part of GNU RCS. # # GNU RCS is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # GNU RCS is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. ## # Usage: rcsfreeze [symbolic-name] # # The idea is to run rcsfreeze each time a new version is checked # in. A unique symbolic revision number (C_[number], where number # is increased each time rcsfreeze is run) is then assigned to the most # recent revision of each RCS file of the main trunk. # # If the command is invoked with an argument, then this # argument is used as the symbolic name to freeze a configuration. # The unique identifier is still generated # and is listed in the log file but it will not appear as # part of the symbolic revision name in the actual RCS file. # # A log message is requested from the user which is saved for future # references. # # The shell script works only on all RCS files at one time. # It is important that all changed files are checked in (there are # no precautions against any error in this respect). # file names: # {RCS/}.rcsfreeze.ver version number # {RCS/}.rscfreeze.log log messages, most recent first ## version='rcsfreeze (GNU RCS) 5.9.0 Copyright (C) 2010-2013 Thien-Thi Nguyen Copyright (C) 1990-1995 Paul Eggert License GPLv3+; GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Stephan v. Bechtolsheim.' usage () { sed '/^##/,/^##/!d;/^##/d;s/^# //g;s/^#$//g' $0 } if [ x"$1" = x--help ] ; then usage ; exit 0 ; fi if [ x"$1" = x--version ] ; then echo "$version" ; exit 0 ; fi PATH=/usr/local/bin:/bin:/usr/bin:/usr/ucb:$PATH export PATH DATE=`date` || exit # Check whether we have an RCS subdirectory, so we can have the right # prefix for our paths. if test -d RCS then RCSDIR=RCS/ EXT= else RCSDIR= EXT=,v fi # Version number stuff, log message file VERSIONFILE=${RCSDIR}.rcsfreeze.ver LOGFILE=${RCSDIR}.rcsfreeze.log # Initialize, rcsfreeze never run before in the current directory test -r $VERSIONFILE || { echo 0 >$VERSIONFILE && >>$LOGFILE; } || exit # Get Version number, increase it, write back to file. VERSIONNUMBER=`cat $VERSIONFILE` && VERSIONNUMBER=`expr $VERSIONNUMBER + 1` && echo $VERSIONNUMBER >$VERSIONFILE || exit # Symbolic Revision Number SYMREV=C_$VERSIONNUMBER # Allow the user to give a meaningful symbolic name to the revision. SYMREVNAME=${1-$SYMREV} echo >&2 "rcsfreeze: symbolic revision number computed: \"${SYMREV}\" rcsfreeze: symbolic revision number used: \"${SYMREVNAME}\" rcsfreeze: the two differ only when rcsfreeze invoked with argument rcsfreeze: give log message, summarizing changes (end with EOF or single '.')" \ || exit # Stamp the logfile. Because we order the logfile the most recent # first we will have to save everything right now in a temporary file. TMPLOG=`mktemp -t` || exit trap 'rm -f $TMPLOG; exit 1' 1 2 13 15 # Now ask for a log message, continously add to the log file ( echo "Version: $SYMREVNAME($SYMREV), Date: $DATE -----------" || exit while read MESS do case $MESS in .) break esac echo " $MESS" || exit done echo "----------- " && cat $LOGFILE ) >$TMPLOG && # combine old and new logfiles cp $TMPLOG $LOGFILE && rm -f $TMPLOG && # Now the real work begins by assigning a symbolic revision number # to each rcs file. Take the most recent version on the default branch. # If there are any .*,v files, throw them in too. # But ignore RCS/.* files that do not end in ,v. DOTFILES= for DOTFILE in ${RCSDIR}.*,v do if test -f "$DOTFILE" then DOTFILES="${RCSDIR}.*,v" break fi done exec rcs -q -n$SYMREVNAME: ${RCSDIR}*$EXT $DOTFILES