moved remove-version-match script to gitlab.com/src_prepare/scripts

This commit is contained in:
Xenhat Hex 2020-05-03 14:39:52 -04:00
parent d5dbd0bca5
commit 112a22ed85
No known key found for this signature in database
GPG Key ID: 03FE57ED1424AB4D

View File

@ -1,8 +0,0 @@
#!/bin/sh
if [ -z $1 ]; then
echo "Must specify a file to modify..."
exit 1
fi
regex='^=?(\S+)(?:-[[:digit:]]+\S*)(\s)(\S+)$'
sub='\1\2\3'
perl -pe "s;$regex;$sub;gm" -i "${1}"