From 8e3e8a6b8b86887d825b197bd5d998f56ba9bb4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20=C5=9Awi=C4=85tek?= Date: Mon, 3 Oct 2011 22:40:27 +0200 Subject: [PATCH 1/1] - help getting new rcscripts --- getrcscripts.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 getrcscripts.sh diff --git a/getrcscripts.sh b/getrcscripts.sh new file mode 100755 index 0000000..a9c9c62 --- /dev/null +++ b/getrcscripts.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# +# get pld rc-scripts from svn, always get stable tags +# +# author: Bartosz Świątek shadzik@tld-linux.org + +if [ $# -lt 1 ]; then + echo "Usage: $0 version" + echo + echo "Example: $0 0.4.5.1" + exit 1 +fi + +VERSION=$1 + +echo "Getting rc-scripts-$VERSION" +svn co http://svn.pld-linux.org/svn/rc-scripts/tags/$VERSION rc-scripts-$VERSION >/dev/null || exit 1 + +echo "Adjusting for TLD" +cd rc-scripts-$VERSION +find . -type f |xargs sed -i 's/PLD/TLD/g' + +echo "Archiving..." +cd .. +tar czf rc-scripts-$VERSION.tar.gz rc-scripts-$VERSION + +echo "Cleaning up..." +rm -rf rc-scripts-$VERSION + +md5sum rc-scripts-$VERSION.tar.gz -- 2.46.0