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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2010 - (show annotations) (download) (as text)
Sat Apr 22 17:30:32 2006 UTC (8 years, 5 months ago) by vapier
File MIME type: text/x-sh
File size: 996 byte(s)
update version for next release
1 #!/bin/bash
2 export TMP="${TMP:-.}"
3 export V="1.6.15"
4 export DEST="${TMP}/rc-scripts-${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-${V}.tar.bz2 rc-scripts-${V}
37 rm -rf ${DEST}
38
39 echo
40 du -b ${TMP}/rc-scripts-${V}.tar.bz2

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20