Welcome to the CHICKEN Scheme pasting service

little release helper pasted by certainty on Sun Jun 12 11:49:00 2011

rel(){
 if [ $# -eq 0 ]; then
   echo "Usage: rel tag"
   exit 1
 fi
 tag=${1}
 project=$( basename $( pwd ))
 
 if [ ! -f "${project}.setup" ]; then
  echo "Could not find setup-file ${project}.setup"
  exit 1
 fi
 
 sed  "s/(version .*)/(version \"${tag}\")/" ${project}.setup
 hg eggtag ${tag}
 hg push
}

with inline update added by certainty on Sun Jun 12 11:50:26 2011

rel(){
 if [ $# -eq 0 ]; then
   echo "Usage: rel tag"
   exit 1
 fi
 tag=${1}
 project=$( basename $( pwd ))
 
 if [ ! -f "${project}.setup" ]; then
  echo "Could not find setup-file ${project}.setup"
  exit 1
 fi
 
 sed  -i "s/(version .*)/(version \"${tag}\")/" ${project}.setup
 hg eggtag ${tag}
 hg push
}

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Name of the language CHICKEN compiles to:
Visually impaired? Let me spell it for you (wav file) download WAV