...
No Format |
---|
PROG="prog1"
NEWPROG="prog2"
AL="unix mingx"
BL="debug release" |
Then create the directories:
No Format |
---|
PROG="prog1" NEWPROG="prog2" for A in unix mingx${AL} ; do for B in debug release ${BL} ; do mkdir -pv build/$A/$B/programs/${PROGNEWPROG}/ done ; done done |
You also might want to copy Makefiles:
No Format |
---|
PROG="prog1" NEWPROG="prog2" for A in unix mingx${AL} ; do for B in debug release do ${BL} ; do cat build/$A/$B/programs/${PROG}/Makefile |sed -e "s/${PROG}/${NEWPROG}/g" >build/$A/$B/programs/${NEWPROG}/Makefile done ; done done |
Finally You might want to svn add
the new directories and copy the svn properties, especially svn:ignore
, like this:
No Format |
---|
for A in unix mingx${AL} ; do for B in debug release ${BL} ; do svn add build/$A/$B/programs/${NEWPROG} svn propget svn:ignore build/$A/$B/programs/${PROG} |sed -e "s/${PROG}/${NEWPROG}/g" >/tmp/svn.props svn propset svn:ignore build/$A/$B/programs/${NEWPROG} --file /tmp/svn.props done done; done |