summaryrefslogtreecommitdiffstats
path: root/scripts/ptx-file_check
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2023-05-05 22:15:51 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2023-05-06 08:39:25 +0200
commitc3530731f85190b29ffdab09bd2753df5a74e6e8 (patch)
treef747c61c50706c9961b77ee57f488ca902c4d742 /scripts/ptx-file_check
parenta60c7e9132caae15d6864df9bbcc3df2a8ff257d (diff)
downloadptxdist-c3530731f85190b29ffdab09bd2753df5a74e6e8.tar.gz
ptxdist-c3530731f85190b29ffdab09bd2753df5a74e6e8.tar.xz
replace egrep with grep -E
Starting with grep 3.8, using egrep emits a warning: egrep: warning: egrep is obsolescent; using grep -E Replace all usages of egrep, which has been deprecated since release 2.5.3 (2007), with grep -E. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Message-Id: <20230505201551.903822-1-l.stach@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/ptx-file_check')
-rwxr-xr-xscripts/ptx-file_check8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/ptx-file_check b/scripts/ptx-file_check
index 51bf9ed63..3b564aca0 100755
--- a/scripts/ptx-file_check
+++ b/scripts/ptx-file_check
@@ -134,7 +134,7 @@ create_md5(){
debug_out "ROOT Directory is >$(pwd)<"
RELEASEDIR=$STORE/$RELEASE
mkdir -p "$RELEASEDIR" || my_exit "mkdir $ROOT/$RELEASEDIR failed" 1
- find . -type f | egrep -v "/sys/|/proc/|/dev/|/mnt|/$STORE" > $RELEASEDIR/files.list
+ find . -type f | grep -E -v "/sys/|/proc/|/dev/|/mnt|/$STORE" > $RELEASEDIR/files.list
LC_ALL=C sort -u $RELEASEDIR/files.list > $RELEASEDIR/files.list.tmp && mv $RELEASEDIR/files.list.tmp $RELEASEDIR/files.list
while read line ; do
md5sum $line
@@ -159,14 +159,14 @@ check_md5(){
md5sum -c $RELEASEDIR/files.md5 | grep -v OK | sed s/:\ FAILED//g>> $LOCALSTATSDIR/check-md5.status
echo "------------ END -------------" >> $LOCALSTATSDIR/check-md5.status
#
- find . -type f | egrep -v "/sys/|/proc/|/dev/|/mnt|/$STORE" > $LOCALSTATSDIR/files.list
+ find . -type f | grep -E -v "/sys/|/proc/|/dev/|/mnt|/$STORE" > $LOCALSTATSDIR/files.list
LC_ALL=C sort -u $LOCALSTATSDIR/files.list > $LOCALSTATSDIR/files.list.tmp && mv $LOCALSTATSDIR/files.list.tmp $LOCALSTATSDIR/files.list
echo "# $(date)" > $LOCALSTATSDIR/check-files.status
echo "# These files do not appear in release $RELEASE, " >> $LOCALSTATSDIR/check-files.status
echo "# however - they appear on the system:" >> $LOCALSTATSDIR/check-files.status
echo "# " >> $LOCALSTATSDIR/check-files.status
echo "----------- START ------------" >> $LOCALSTATSDIR/check-files.status
- diff $RELEASEDIR/files.list $LOCALSTATSDIR/files.list | egrep "<|>" | sed s/'[><][ ][\.]'//g >> $LOCALSTATSDIR/check-files.status
+ diff $RELEASEDIR/files.list $LOCALSTATSDIR/files.list | grep -E "<|>" | sed s/'[><][ ][\.]'//g >> $LOCALSTATSDIR/check-files.status
echo "------------ END -------------" >> $LOCALSTATSDIR/check-files.status
#
if [ "$REPORT" = "true" ]; then
@@ -211,7 +211,7 @@ check_ipkglist(){
echo "# These package versions differ from release $RELEASE:" >> $LOCALSTATSDIR/check-ipkglist.status
echo "# " >> $LOCALSTATSDIR/check-ipkglist.status
echo "----------- START ------------" >> $LOCALSTATSDIR/check-ipkglist.status
- diff $RELEASEDIR/ipkg.list $LOCALSTATSDIR/ipkg.list | egrep ">" | sed s/'[><][ ]'//g >> $LOCALSTATSDIR/check-ipkglist.status
+ diff $RELEASEDIR/ipkg.list $LOCALSTATSDIR/ipkg.list | grep -E ">" | sed s/'[><][ ]'//g >> $LOCALSTATSDIR/check-ipkglist.status
echo "------------ END -------------" >> $LOCALSTATSDIR/check-ipkglist.status
#
if [ "$REPORT" = "true" ]; then