cSvn-UI for SVN Repositories

cGit-UI – is a web interface for Subversion (SVN) Repositories. cSvn CGI script is writen in C and therefore it's fast enough

6 Commits   0 Branches   2 Tags
bfc1508d (kx 2023-03-24 03:55:33 +0300  1) # Sed script that inserts the file called HEADER before the header entry.
bfc1508d (kx 2023-03-24 03:55:33 +0300  2) #
bfc1508d (kx 2023-03-24 03:55:33 +0300  3) # At each occurrence of a line starting with "msgid ", we execute the following
bfc1508d (kx 2023-03-24 03:55:33 +0300  4) # commands. At the first occurrence, insert the file. At the following
bfc1508d (kx 2023-03-24 03:55:33 +0300  5) # occurrences, do nothing. The distinction between the first and the following
bfc1508d (kx 2023-03-24 03:55:33 +0300  6) # occurrences is achieved by looking at the hold space.
bfc1508d (kx 2023-03-24 03:55:33 +0300  7) /^msgid /{
bfc1508d (kx 2023-03-24 03:55:33 +0300  8) x
bfc1508d (kx 2023-03-24 03:55:33 +0300  9) # Test if the hold space is empty.
bfc1508d (kx 2023-03-24 03:55:33 +0300 10) s/m/m/
bfc1508d (kx 2023-03-24 03:55:33 +0300 11) ta
bfc1508d (kx 2023-03-24 03:55:33 +0300 12) # Yes it was empty. First occurrence. Read the file.
bfc1508d (kx 2023-03-24 03:55:33 +0300 13) r HEADER
bfc1508d (kx 2023-03-24 03:55:33 +0300 14) # Output the file's contents by reading the next line. But don't lose the
bfc1508d (kx 2023-03-24 03:55:33 +0300 15) # current line while doing this.
bfc1508d (kx 2023-03-24 03:55:33 +0300 16) g
bfc1508d (kx 2023-03-24 03:55:33 +0300 17) N
bfc1508d (kx 2023-03-24 03:55:33 +0300 18) bb
bfc1508d (kx 2023-03-24 03:55:33 +0300 19) :a
bfc1508d (kx 2023-03-24 03:55:33 +0300 20) # The hold space was nonempty. Following occurrences. Do nothing.
bfc1508d (kx 2023-03-24 03:55:33 +0300 21) x
bfc1508d (kx 2023-03-24 03:55:33 +0300 22) :b
bfc1508d (kx 2023-03-24 03:55:33 +0300 23) }