mirror of
https://github.com/KeithDHedger/LFSPkgBuilds.git
synced 2025-07-25 01:19:03 +00:00
16 lines
379 B
Bash
Executable File
16 lines
379 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
#©keithhedger Tue 10 Mar 20:17:55 GMT 2015 kdhedger68713@gmail.com
|
|
|
|
NAME=${1%-?*}
|
|
VERS=${1##?*-}
|
|
FILE=$(find /LFSPkgBuildScripts -iname "$NAME.LFSBuild")
|
|
|
|
if [ X$FILE != "X" ];then
|
|
sed -i "s/^VERSION=\".*\"/VERSION=\"$VERS\"/" $FILE
|
|
fi
|
|
|
|
while read
|
|
do
|
|
sed -r -i "s/\b${NAME}-[0-9\.]+\b/${1}/ig" ${REPLY}
|
|
done < <(find /LFSPkgBuildScripts -iname "*.LFSBuild") |