diff options
author | Olav Vitters <olav@vitters.nl> | 2020-07-25 01:05:11 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2020-07-25 01:05:11 +0200 |
commit | ce22a8c790e13f3fadd09d0b311398b22cc93543 (patch) | |
tree | b9fb4b4e16ca0598cf6fe69c354bb1d85271bb13 /mandriva | |
parent | b89db1f271fb8598686b20b62757ea2bec553a36 (diff) | |
download | initscripts-ce22a8c790e13f3fadd09d0b311398b22cc93543.tar initscripts-ce22a8c790e13f3fadd09d0b311398b22cc93543.tar.gz initscripts-ce22a8c790e13f3fadd09d0b311398b22cc93543.tar.bz2 initscripts-ce22a8c790e13f3fadd09d0b311398b22cc93543.tar.xz initscripts-ce22a8c790e13f3fadd09d0b311398b22cc93543.zip |
mandriva/import_rh.sh: remove, too outdated to be useful
This script was used to make it easier to merge our initscripts fork
with upstream. script is heavily outdated and as a result, unusable. It
e.g. assumes upstream uses SVN and we're using SVN. The instructions
within README.md are way more useful.
Diffstat (limited to 'mandriva')
-rwxr-xr-x | mandriva/import_rh.sh | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/mandriva/import_rh.sh b/mandriva/import_rh.sh deleted file mode 100755 index a053ccc5..00000000 --- a/mandriva/import_rh.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -# http://svnbook.red-bean.com/en/1.0/ch07s04.html (Vendor branches) -# http://subversion.tigris.org/faq.html#merge-using-tags - -set -e - -SVNROOT=svn+ssh://svn.mandriva.com/svn/soft -RH_BRANCH=RedHat -RH_SRC_RPM=$1 -LAST_MERGE_TAG=rh_last_merge - -if [ -z $RH_SRC_RPM ]; then - echo "syntax: $0 <redhat src.rpm>" - exit -fi - -NAME=`rpm -qp --qf '%{name}' $1` -VERSION=`rpm -qp --qf '%{version}' $1` -VC_VERSION=rh${VERSION/./_} - -RH_DIR=$NAME-$VERSION -RH_TAR=$RH_DIR.tar.bz2 - -rpm2cpio $RH_SRC_RPM | cpio -ivd $RH_TAR -tar xjf $RH_TAR -# remove po files, we do not care and do not want to waste space on SVN -rm -rf $RH_DIR/po/*.po{,t} - -mv $RH_TAR `rpm --eval %_topdir`/SOURCES - -TOP_PATH=$SVNROOT/$NAME -BRANCH_PATH=$TOP_PATH/branches/$RH_BRANCH -LAST_MERGE_PATH=$TOP_PATH/tags/$LAST_MERGE_TAG - -svn delete -m "remove old last merge tag" $LAST_MERGE_PATH -svn copy -m "tagging rh last merge (prep for $VC_VERSION merge)" $BRANCH_PATH $LAST_MERGE_PATH -svn_load_dirs.pl -t tags/$VC_VERSION $TOP_PATH branches/$RH_BRANCH $RH_DIR - -rm -rf $RH_DIR - -echo "Imported rh $VERSION sources" -echo "Please run:" -# needed to avoid mismerge because ChangeLog is a symlink here -echo \* svn merge $LAST_MERGE_PATH $BRANCH_PATH -echo \* svn update |