Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problem with pcc prepare-import.sh script



On Sun, 03 Aug 2014, William D. Jones wrote:
william@xubuntu-ltrain:~/Projects/NetBSD-CVS/src/external/bsd/pcc$ ./prepare-import.sh
+ set -e
+ [ ! -d work -o ! -d work/pcc ]
+ echo ====> Removing pcc CVS directories...
====> Removing pcc CVS directories...
+ find work+  -typexargs rm -Rf
d -name CVS
+ echo ====> Fixing file and directory permissions...
====> Fixing file and directory permissions...
+ find work -type d -exec chmod u=rwx,go=rx {} ;
+ find work -type f -exec chmod u=rw,go=r {} ;
+ echo ====> Fixing RCS tags...
====> Fixing RCS tags...
+ grep -RL \$(NetBSD|Id).*\$ work
+ sed -e /\$NetBSD\$/d -e s,\$\(NetBSD[[:>:]].*\)\$,\1, -e s,\(.*\)\$\(Id[[:>:]].*\)\$\(.*\),\1\2\3 \
\1\$NetBSD\$\3,
sed: -e expression #2, char 29: Invalid character class name

Scripts that are intended to be run by developers, as opposed to people who simply build and use NetBSD, may expect NetBSD-specific extensions to be present.

[[:>:]] is a non-standard extension that's available in NetBSD's sed command. It matches the end of a word. In most cases, there will be a colon after the $NetBSD or $Id, so you could change the regexp to insist on a colon instead of just end-of-word at that point.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index