ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cvs-geidontei/create-cvs.in
Revision: 1.1
Committed: Mon Sep 30 02:14:12 2024 UTC (6 weeks, 5 days ago) by yakumo_izuru
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
Log Message:
cvsutils was already taken

File Contents

# Content
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"