Browse Source

Clifford Wolf <clifford@clifford.at>:

Auto-remove CVS and .svn directories in $srcdir.


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1541 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Clifford Wolf 21 years ago
parent
commit
bfe9b5243d
4 changed files with 25 additions and 7 deletions
  1. +8
    -4
      Documentation/Developers/CHANGELOG-CLIFFORD
  2. +1
    -0
      Documentation/Developers/PKG-BUILD-VARS
  3. +1
    -1
      scripts/Build-Pkg
  4. +15
    -2
      scripts/functions

+ 8
- 4
Documentation/Developers/CHANGELOG-CLIFFORD

@ -1,18 +1,22 @@
*) 2003-09-27 (2.0.0-camp - 2.0.0-rc1)
*) 2003-09-29 (2.0.0-rc1 - 2.0.0-rc2)
- Auto-remove CVS and .svn directories in $srcdir
*) 2003-09-27 (2.0.0-rc1 - 2.0.0-rc2)
- Updated mine-0.15 and made neccassary adoptions in scripts/functions - Updated mine-0.15 and made neccassary adoptions in scripts/functions
*) 2003-09-24 (2.0.0-camp - 2.0.0-rc1)
*) 2003-09-24 (2.0.0-rc1 - 2.0.0-rc2)
- Fixed *.Z to *.bz2 conversion in Download script - Fixed *.Z to *.bz2 conversion in Download script
*) 2003-09-20 (2.0.0-camp - 2.0.0-rc1)
*) 2003-09-20 (2.0.0-rc1 - 2.0.0-rc2)
- Added "no broken deps" feature to scripts/Create-PkgQueue - Added "no broken deps" feature to scripts/Create-PkgQueue
- Some minor Emerge-Pkg enhancements and fixes - Some minor Emerge-Pkg enhancements and fixes
*) 2003-08-26 (2.0.0-camp - 2.0.0-rc1)
*) 2003-08-26 (2.0.0-rc1 - 2.0.0-rc2)
- Added packages cpuid and syslinux - Added packages cpuid and syslinux
- Added framework for "package preselection templates" - Added framework for "package preselection templates"

+ 1
- 0
Documentation/Developers/PKG-BUILD-VARS

@ -54,6 +54,7 @@ includedir .... where the header files should be installed
autoextract ... '0' = skip automatic untar autoextract ... '0' = skip automatic untar
autopatch ..... '0' = skip automatic patching autopatch ..... '0' = skip automatic patching
chownsrcdir ... '0' = don't make a chown to root after extracting the $srctar chownsrcdir ... '0' = don't make a chown to root after extracting the $srctar
nocvsinsrcdir . '0' = don't remove CVS and .svn directories in $srcdir
srctar ........ filename of source tar file ('auto' = autodetect) srctar ........ filename of source tar file ('auto' = autodetect)
srcdir ........ directory in source tar file ('auto' = autodetect) srcdir ........ directory in source tar file ('auto' = autodetect)
xsrctar ....... filename of source tar file after 'auto' has been processed xsrctar ....... filename of source tar file after 'auto' has been processed

+ 1
- 1
scripts/Build-Pkg

@ -420,7 +420,7 @@ taropt="--use-compress-program=bzip2 -xf"
mainfunction="build_this_package" mainfunction="build_this_package"
runconf=1 ; runxmkmf=1 ; runmkpl=1 ; runpysetup=1 ; autopatch=1 runconf=1 ; runxmkmf=1 ; runmkpl=1 ; runpysetup=1 ; autopatch=1
autoextract=1 ; chownsrcdir=1 ; patchopt="-bfp1 -z .orig"
autoextract=1 ; chownsrcdir=1 ; nocvsinsrcdir=1; patchopt="-bfp1 -z .orig"
createprefix=1 ; createdocs="" ; rmemptydir="" createprefix=1 ; createdocs="" ; rmemptydir=""
check_shared=1 check_shared=1

+ 15
- 2
scripts/functions

@ -493,7 +493,7 @@ build_this_package() {
if [ $autoextract = 1 ]; then if [ $autoextract = 1 ]; then
echo "Extracting $xsrctar ($taropt) ... " echo "Extracting $xsrctar ($taropt) ... "
cd $builddir cd $builddir
tar -v $taropt $archdir/$xsrctar |
tar -v $taropt $archdir/$xsrctar | tee untar.txt |
cut -f1 -d/ | sort -u > xsrcdir.txt cut -f1 -d/ | sort -u > xsrcdir.txt
# #
if [ $srcdir = auto ]; then if [ $srcdir = auto ]; then
@ -509,8 +509,21 @@ build_this_package() {
xsrcdir="$srcdir" xsrcdir="$srcdir"
fi fi
# #
if [ "$chownsrcdir" = 1 ]; then
echo "Fixing ownership and permissions ..."
chown -R 0.0 $builddir/$xsrcdir
fi
#
if [ "$nocvsinsrcdir" = 1 ]; then
echo "Removing CVS and .svn directories ..."
egrep '(^|/)(CVS|\.svn)(/|$)' untar.txt |
while read x; do
echo "Removing $x ..."
rm -rf "$x"
done
fi
#
echo "Changeing into $builddir/$xsrcdir ..." echo "Changeing into $builddir/$xsrcdir ..."
[ "$chownsrcdir" = 1 ] && chown -R 0.0 $builddir/$xsrcdir
cd $builddir/$xsrcdir cd $builddir/$xsrcdir
# Apply patches # Apply patches

Loading…
Cancel
Save