/[cvs-geidontei]/create-cvs.in
ViewVC logotype

Annotation of /create-cvs.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations)
Mon Sep 30 02:14:12 2024 UTC (6 weeks, 4 days ago) by yakumo_izuru
Branch: MAIN
CVS Tags: HEAD
Content type: text/plain
cvsutils was already taken

1 yakumo_izuru 1.1 #!/bin/sh
2     if [ -e "$HOME/public_cvs" ]; then
3     echo "$HOME/public_cvs already exists"
4     exit 1
5     fi
6     rm -rf $HOME/public_cvs
7     mkdir -p $HOME/public_cvs/CVSROOT
8     cvs -d $HOME/public_cvs init
9     echo "anon:" > $HOME/public_cvs/CVSROOT/passwd
10     echo -n "$USER:" >> $HOME/public_cvs/CVSROOT/passwd
11     echo -n "Password for CVS: "
12     %%PREFIX%%/bin/perl -MTerm::ReadKey -le 'Term::ReadKey::ReadMode("noecho");my $password = Term::ReadKey::ReadLine(0);Term::ReadKey::ReadMode("restore");$password =~ s/\R\z//;print $password;' | pwhash >> $HOME/public_cvs/CVSROOT/passwd
13     echo
14     echo "anon" > $HOME/public_cvs/CVSROOT/readers
15     echo "$USER" > $HOME/public_cvs/CVSROOT/writers
16     doas %%PREFIX%%/bin/modify-cvsroot-permission
17     echo "Set CVSROOT to $HOME/public_cvs"

nishi@chaotic.ninja
ViewVC Help
Powered by ViewVC 1.3.0-dev