packages: package (NEW) - script to checkout data to current dir i...

glen glen at pld-linux.org
Sat Apr 12 18:32:35 CEST 2008


Author: glen                         Date: Sat Apr 12 16:32:35 2008 GMT
Module: packages                      Tag: HEAD
---- Log message:
- script to checkout data to current dir in gentoo style

---- Files affected:
packages:
   package (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/package
diff -u /dev/null packages/package:1.1
--- /dev/null	Sat Apr 12 18:32:35 2008
+++ packages/package	Sat Apr 12 18:32:30 2008
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Checkout data to current dir in gentoo style from PLD Linux CVS:
+# ./PACKAGE
+# ./PACKAGE/files
+#
+# For this to work you will need your rpm macros defined as:
+# %_topdir		%(pwd)
+# %_specdir		%{_topdir}
+# %_sourcedir	%{_topdir}/files
+# %_builddir	%{_topdir}
+# %_rpmdir		%{_topdir}
+# %_srcrpmdir	%{_topdir}
+
+pkg=$1
+
+# remove branch information
+spec=${pkg%:*}
+# allow usage without extension
+spec=${spec%.spec}.spec
+
+# create pkg dir, associate dir with SPECS
+# we keep branch information in dirname so you could have 'rpm:AC-branch' and 'rpm:rpm-4_4_9' dirs
+cvs co -d $pkg SPECS/$spec
+
+# checkout tools
+cd $pkg
+cvs up {builder,md5,adapter,adapter.awk,mirrors,{repackage,compile}.sh,$spec}
+
+# associate files dir with SOURCES
+cvs co -d files SOURCES/.cvsignore
+cd files
+# checkout extra files
+cvs up rpm.groups
+cd ..
+
+# fetch rest of the sources with builder script
+./builder -g $pkg
================================================================


More information about the pld-cvs-commit mailing list