/[vps]/baselayout-vserver/branches/rc-scripts-1_6/tarball.sh
Gentoo

Contents of /baselayout-vserver/branches/rc-scripts-1_6/tarball.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 252 - (show annotations) (download) (as text)
Thu Feb 23 13:39:22 2006 UTC (12 years, 4 months ago) by phreak
File MIME type: text/x-sh
File size: 1028 byte(s)
Merging baselayout r1924
1 #!/bin/bash
2 export TMP="${TMP:-.}"
3 export V="1.6.15"
4 export DEST="${TMP}/rc-scripts-vserver-${V}"
5
6 if [[ $1 != "-f" ]] ; then
7 echo "Performing sanity checks (run with -f to skip) ..."
8 svnfiles=$( svn status 2>&1 | egrep -v '^(U|P)' )
9 if [[ -n ${svnfiles} ]] ; then
10 echo "Refusing to package tarball until svn is in sync:"
11 echo "${svnfiles}"
12 exit 1
13 fi
14 fi
15
16 echo "Creating tarball ..."
17 rm -rf ${DEST}
18
19 svn export . ${DEST}
20
21 # do not yet package src/core stuff
22 rm -rf ${DEST}/src/core
23
24 # copy net-scripts and remove older stuff
25 install -d -m0755 ${DEST}/lib/rcscripts
26 mv ${DEST}/net-scripts/init.d/* ${DEST}/init.d/
27 mv ${DEST}/net-scripts/conf.d/* ${DEST}/etc/conf.d/
28 mv ${DEST}/net-scripts/net.modules.d ${DEST}/lib/rcscripts/
29 ln -sfn net.lo ${DEST}/init.d/net.eth0
30 rm -r ${DEST}/net-scripts
31
32 chown -R root:root ${DEST}
33 chmod 0755 ${DEST}/sbin/*
34 chmod 0755 ${DEST}/init.d/*
35 cd $TMP
36 tar cjvf ${TMP}/rc-scripts-vserver-${V}.tar.bz2 rc-scripts-vserver-${V}
37 rm -rf ${DEST}
38
39 echo
40 du -b ${TMP}/rc-scripts-vserver-${V}.tar.bz2
41

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20