From aabfbd740823287bd9161cec0f705e57cecb9f0f Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Thu, 1 Feb 2024 18:14:00 +0300 Subject: [PATCH] update --- SOURCES/converttogit.sh | 23 +++++++++++++++++++++++ SOURCES/update_libquicktime.sh | 31 +++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 SOURCES/converttogit.sh create mode 100755 SOURCES/update_libquicktime.sh diff --git a/SOURCES/converttogit.sh b/SOURCES/converttogit.sh new file mode 100644 index 0000000..a361eba --- /dev/null +++ b/SOURCES/converttogit.sh @@ -0,0 +1,23 @@ + + +cvs -d:pserver:anonymous@libquicktime.cvs.sourceforge.net:/cvsroot/libquicktime login +cvs -z3 -d:pserver:anonymous@libquicktime.cvs.sourceforge.net:/cvsroot/libquicktime co -P libquicktime +cd libquicktime +git cvsimport -v + +In github.com press + and new repository, choose repository name: libquicktime +without "Initialize this repository with a README" . +and run: + +git remote add origin git@github.com:sergiomb2/libquicktime.git +git push -u origin master + +and I got this : +https://github.com/sergiomb2/libquicktime/commits/master + +and with: +git remote set-url origin ssh://sergiomb@git.code.sf.net/p/libquicktime/git +git push -u origin master + +and we got : +https://sourceforge.net/p/libquicktime/git/ci/master/tree/ diff --git a/SOURCES/update_libquicktime.sh b/SOURCES/update_libquicktime.sh new file mode 100755 index 0000000..eaf4716 --- /dev/null +++ b/SOURCES/update_libquicktime.sh @@ -0,0 +1,31 @@ +git clone https://sergiomb@git.code.sf.net/p/libquicktime/git libquicktime +version=1.2.4 +tag=$version +branch=master +pushd libquicktime +git checkout $branch +git pull +#git log $tag..HEAD > ../ChangeLog +newdescrib=$(git describe --tags) +date=$(git log -1 --format=%cd --date=short | tr -d \-) +relversion=$(echo $newdescrib | sed "s/^[^-]*//; s/-/./g; s/\.g/.${date}git/") +githash=$(git rev-parse HEAD) +shorthash=$(echo $githash | cut -b -10) +popd +#git checkout libquicktime.spec +#sed -i "s|^%define vers_string .*|%define vers_string $newdescrib|" libquicktime.spec +sed -i "s|^%define rel_string .*|%define rel_string $relversion|" libquicktime.spec +sed -i "s|^%define githash .*|%define githash $githash|" libquicktime.spec +rpmdev-bumpspec -c "Update to $version$relversion from branch $branch" libquicktime.spec +spectool -g libquicktime.spec +echo Press enter to run: rfpkg new-sources libquicktime-${version}-${githash}.zip; read dummy; +rfpkg new-sources libquicktime-git-${githash}.zip +rfpkg ci -c && git show +echo Press enter to continue; read dummy; +rfpkg push && rfpkg build --nowait +echo Press enter to continue; read dummy; +git checkout f29 && git merge master && git push && rfpkg build --nowait; git checkout master +echo Press enter to continue; read dummy; +git checkout f28 && git merge master && git push && rfpkg build --nowait; git checkout master +echo Press enter to continue; read dummy; +git checkout el7 && git merge master && git push && rfpkg build --nowait; git checkout master