diff options
Diffstat (limited to 'app-doc/gentoo-web/files/bin')
-rwxr-xr-x | app-doc/gentoo-web/files/bin/cvslog.sh | 31 | ||||
-rwxr-xr-x | app-doc/gentoo-web/files/bin/pytext | 38 | ||||
-rwxr-xr-x | app-doc/gentoo-web/files/bin/update-web | 3 | ||||
-rwxr-xr-x | app-doc/gentoo-web/files/bin/wiki.pl | 81 | ||||
-rw-r--r-- | app-doc/gentoo-web/files/bin/xmlcvslog.sh | 16 |
5 files changed, 0 insertions, 169 deletions
diff --git a/app-doc/gentoo-web/files/bin/cvslog.sh b/app-doc/gentoo-web/files/bin/cvslog.sh deleted file mode 100755 index e02a959b832e..000000000000 --- a/app-doc/gentoo-web/files/bin/cvslog.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -USER=drobbins -HOMEDIR=/home/d/${USER} -CVSDIR=${HOMEDIR}/scripts/gentoo-x86 -OUTLOG=${HOMEDIR}/scripts/cvslog.out -OUTMAIL=${HOMEDIR}/scripts/cvsmail.out -WEBDIR=/www/virtual/www.gentoo.org/htdocs -XSLTP=/usr/bin/xsltproc -TMPFILE=${HOMEDIR}/scripts/cvslog.tmp - -if [ -z "$CVSMAIL" ] -then - export CVSMAIL="yes" -fi - -cd $CVSDIR -cvs -q update -dP -yesterday=`date -d "1 day ago 00:00" -R` -today=`date -d "00:00" -R` -cvsdate=-d\'${yesterday}\<${today}\' -nicedate=`date -d yesterday +"%d %b %Y %Z (%z)"` -/usr/bin/cvs2cl.pl --xml -f $OUTLOG -l "${cvsdate}" -/usr/bin/sed -e 's/xmlns=".*"//' $OUTLOG > ${OUTLOG}.2 -$XSLTP ${WEBDIR}/xsl/cvs.xsl ${OUTLOG}.2 > $TMPFILE -$XSLTP ${WEBDIR}/xsl/guide-main.xsl $TMPFILE > ${WEBDIR}/index-changelog.html -chmod 0644 ${WEBDIR}/index-changelog.html -if [ "$CVSMAIL" = "yes" ] -then - /usr/bin/cvs2cl.pl -f ${OUTMAIL} -l "${cvsdate}" - mutt -x gentoo-cvs -s "cvs log for $nicedate" < ${OUTMAIL} -fi diff --git a/app-doc/gentoo-web/files/bin/pytext b/app-doc/gentoo-web/files/bin/pytext deleted file mode 100755 index f0bd4336d880..000000000000 --- a/app-doc/gentoo-web/files/bin/pytext +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python - -# pytext 2.1 -# Copyright 1999-2000 Daniel Robbins -# Distributed under the GPL - -import sys - -def runfile(myarg): - "interprets a text file with embedded elements" - mylocals={} - try: - a=open(myarg,'r') - except IOError: - sys.stderr.write("!!! Error opening "+myarg+"!\n") - return - mylines=a.readlines() - a.close() - pos=0 - while pos<len(mylines): - if mylines[pos][0:8]=="<!--code": - mycode="" - pos=pos+1 - while (pos<len(mylines)) and (mylines[pos][0:3]!="-->"): - mycode=mycode+mylines[pos] - pos=pos+1 - exec(mycode,globals(),mylocals) - else: - sys.stdout.write(mylines[pos]) - pos=pos+1 - -if len(sys.argv)>1: - for x in sys.argv[1:]: - runfile(x) - sys.exit(0) -else: - sys.stderr.write("pytext 2.1 -- Copyright 1999-2000 Daniel Robbins. Distributed under the\nGNU Public License\n\nUsage: "+sys.argv[0]+" file0 [file1]...\n") - sys.exit(1) diff --git a/app-doc/gentoo-web/files/bin/update-web b/app-doc/gentoo-web/files/bin/update-web deleted file mode 100755 index 98b7e0386b6c..000000000000 --- a/app-doc/gentoo-web/files/bin/update-web +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -cd /usr/portage/app-doc/gentoo-web -emerge $1 diff --git a/app-doc/gentoo-web/files/bin/wiki.pl b/app-doc/gentoo-web/files/bin/wiki.pl deleted file mode 100755 index a6291e9d3a89..000000000000 --- a/app-doc/gentoo-web/files/bin/wiki.pl +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/perl -# - -use DBI; - -# EDITME -$sql_user = '##USER##'; -$sql_pass = '##PASS##'; - -unless ( $ARGV[0] =~ /^add$/i || $ARGV[0] =~ /^remove$/i ) { - print STDERR "\nGentoo Linux dev-wiki admin tool!\n\n\tUsage: wiki.pl <add|remove>\n\n"; - exit; -} - -$dbh = DBI->connect( "DBI:mysql:##DB##", $sql_user, $sql_pass ) or die "Can't connect: $DBI::err.\n"; - -if ( $ARGV[0] =~ /^add$/i ) { - print "****************\n"; - print "** ADD A USER **\n"; - print "** (dev-wiki) **\n"; - print "****************\n\n"; - - print 'username: '; - chomp( $username = <STDIN> ); - die "Empty username!\n" if $username eq ''; - - print 'password: '; - chomp( $password = <STDIN> ); - die "Empty password!\n" if $password eq ''; - - print "\nWould you like this user to be an admin (y/n)? "; - chomp( $admin = <STDIN> ); - - if ( $admin =~ /^y/i ) { - $admin = 1; - $admin_word = "yes"; - } else { - $admin = 0; - $admin_word = "no"; - } - - print "\nDid I get that right: ($username/$password/admin: $admin_word)? "; - chomp( $check = <STDIN> ); - die "Okay, try again then.\n" unless $check =~ /^y/i; - - $sth = $dbh->prepare( "insert into ##DB##.users set username='$username',password='$password',admin=$admin" ); - $sth->execute(); - - print "\nUser $username added.\n"; - exit; -} else { - print "*******************\n"; - print "** REMOVE A USER **\n"; - print "** (dev-wiki) **\n"; - print "*******************\n\n"; - - print 'username: '; - chomp( $username = <STDIN> ); - die "Empty username!\n" if $username eq ''; - - $sth = $dbh->prepare( "select uid from ##DB##.users where username='$username'" ); - $sth->execute(); - ( $uid ) = $sth->fetchrow_array(); - die "$username does not exist!\n" if !$uid; - - print "Are you absolutely sure you want to remove $username\n"; - print "from the database? This will remove all of his/her\n"; - print "todo items and follow-ups past and present. (y/n): "; - chomp( $check = <STDIN> ); - die "Okaythen. No changes made.\n" unless $check =~ /^y/i; - - $sth = $dbh->prepare( "delete from ##DB##.users where uid=$uid" ); - $sth->execute(); - $sth = $dbh->prepare( "delete from ##DB##.todos where owner=$uid" ); - $sth->execute(); - $sth = $dbh->prepare( "delete from ##DB##.followups where uid=$uid" ); - $sth->execute(); - - print "\nWow, sucks to be $username; he's gone.\n"; -} - diff --git a/app-doc/gentoo-web/files/bin/xmlcvslog.sh b/app-doc/gentoo-web/files/bin/xmlcvslog.sh deleted file mode 100644 index d7c1562b4646..000000000000 --- a/app-doc/gentoo-web/files/bin/xmlcvslog.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -HOMEDIR=/home/drobbins -CVSDIR=${HOMEDIR}/gentoo/gentoo-x86 -OUTLOG=${HOMEDIR}/gentoo/xmlcvslog.txt -WEBDIR=/usr/local/httpd/htdocs -XSLTP=/opt/gnome/bin/xsltproc - -cd $CVSDIR -cvs -q update -dP -yesterday=`date -d "1 day ago 00:00" -R` -today=`date -d "00:00" -R` -cvsdate=-d\'${yesterday}\<${today}\' -nicedate=`date -d yesterday +"%d %b %Y %Z (%z)"` -/usr/bin/cvs2cl.pl --xml -f $OUTLOG -l "${cvsdate}" -$XSLTP ${WEBDIR}/xsl/cvs.xsl $OUTLOG | $XSLTP ${WEBDIR}/xsl/guide-main.xsl > ${WEBDIR}/index-changelog.html -chmod 0644 ${WEBDIR}/index-changelog.html |