www.flickr.com
tres frijoles' photos More of tres frijoles' photos
You are here: tearsoffire.org > Projects Web > LinuxScripts r3 - 06 Mar 2008 - 16:16 - ChristopherPepe


Start of topic | Skip to actions

LinuxScripts

about

These are generally trivial scripts but are used often enough that they save me some typing. In general this is a pretty poor representation of my scripts because I usually forget about this page.

randpass

This is a simple perl script that generates low quality random passwords. This was useful when I was a sysadmin and was constantly setting up new accounts.

  • RandPass - Low Quality Random Password Generator

rmCVS

This short bash script recursively traverses a source tree and removes the CVS directories. This allows the sandbox to be severed from the original repository. It can then be imported into another repo or have other CVS modules laid over the top of it. Whenever possible you should use the export feature of cvs rather than this script but that is not always possible. I wrote this because I checked u-boot out of the public cvs repo and wanted to maintain a seperate branch for the project I was working on. I wasn't able to export u-boot so manually removing the CVS directories was my only option before it could be added to my CVS server

#!/bin/bash
# Simple Script to recursively remove CVS directories
# from a sandbox.  Use this script to break the link
# between the code and its original repo.
# Author:       Christopher Pepe 
# Date:         June 7, 2007

###Configure basedir for your CVS sandbox
$basedir = .

echo Recursively removing CVS directories
echo gathering CVS directory paths, this may take a while...
for path in `ls -alR $basedir | xargs -l | grep -i "cvs:" -`
do
        cutPos=${#path}-1
        name=${path:0:$cutPos}
        echo Removing $name
        rm $name -rf
done

CVS to Subversion Conversion

Most of the 'heavily' lifting is done by cvs2svn but I wanted something a little different.

-- ChristopherPepe - 07 Jun 2007

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding tearsoffire.org? Send feedback