cdpg() { cd /pgsql/source/$1 } cdsrc() { if ! echo $PWD | grep /pgsql/ >/dev/null 2>&1; then echo $PWD no es correcto para esto return fi NEWDIR=`echo $PWD | sed -e 's,^\(.*/pgsql/\)/,\1,' -e 's,build,source,' -e 's,install,source,'` cd $NEWDIR } cdbld() { if ! echo $PWD | grep /pgsql/ >/dev/null 2>&1; then echo $PWD no es correcto para esto return fi NEWDIR=`echo $PWD | sed -e 's,^\(.*/pgsql/\)/,\1,' -e 's,source,build,' -e 's,install,build,'` cd $NEWDIR } cdinst() { if ! echo $PWD | grep /pgsql/ >/dev/null 2>&1; then echo $PWD no es correcto para esto return fi NEWDIR=`echo $PWD | sed -e 's,^\(.*/pgsql/\)/,\1,' -e 's,source,install,' -e 's,build,install,'` cd $NEWDIR }