diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-05 02:01:11 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-05 02:01:11 +0000 |
commit | caa559eb89d71a59c05dfee33db048e50e849681 (patch) | |
tree | 11afd5e70f8db2476806681cb6ea78bb04e80cae /remove-babeld-ldpd.sh | |
parent | d0152f05101c9c776d959f72ccabf6e82ab4fd13 (diff) |
automatic import of frropeneuler24.03_LTS
Diffstat (limited to 'remove-babeld-ldpd.sh')
-rw-r--r-- | remove-babeld-ldpd.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/remove-babeld-ldpd.sh b/remove-babeld-ldpd.sh new file mode 100644 index 0000000..ae76a45 --- /dev/null +++ b/remove-babeld-ldpd.sh @@ -0,0 +1,16 @@ +#!/bin/sh +#this script is used to remove babled and ldpd from the tar sources +#Usage: sh remove-babeld-ldpd.sh <VERSION> +#Example: sh remove-babeld-ldpd.sh 7.3.1 - this is for frr-7.3.1.tar.gz file + +VERSION=$1 +TAR=frr-${VERSION}.tar.gz +DIR=frr-${VERSION} + +echo ${VERSION} +echo ${TAR} +echo ${DIR} + +tar -xzf ${TAR} +rm -rf ${DIR}/babeld ${DIR}/ldpd +tar -czf ${TAR} ${DIR} |