/[baselayout]/tags/baselayout-1.12.3/tarball.sh
Gentoo

Contents of /tags/baselayout-1.12.3/tarball.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2177 - (show annotations) (download) (as text)
Wed Aug 2 09:38:33 2006 UTC (7 years, 11 months ago) by uberlord
File MIME type: text/x-sh
File size: 1172 byte(s)
Updated tarball.sh to make clean before making the tarball, bug #142457
1 #!/bin/bash
2 export TMP="${TMP:-/tmp}"
3 export V="1.12.3"
4 export NAME="baselayout"
5 export DEST="${TMP}/${NAME}-${V}"
6
7 if [[ $1 != "-f" ]] ; then
8 echo "Performing sanity checks (run with -f to skip) ..."
9
10 # Check that we're updated
11 svnfiles=$( svn status 2>&1 | egrep -v '^(U|P)' )
12 if [[ -n ${svnfiles} ]] ; then
13 echo "Refusing to package tarball until svn is in sync:"
14 echo "$svnfiles"
15 exit 1
16 fi
17 fi
18
19 echo "Creating tarball ..."
20 rm -rf ${DEST}
21 install -d -m0755 ${DEST}
22
23 for x in bin etc init.d sbin src rc-lists man ; do
24 cp -ax $x ${DEST}
25 done
26
27 # do not yet package src/core stuff
28 rm -rf ${DEST}/src/core
29
30 # Make clean
31 (cd ${DEST}/src; make clean)
32
33 # copy net-scripts and remove older stuff
34 install -d -m0755 ${DEST}/lib/rcscripts
35 cp -ax net-scripts/init.d ${DEST}
36 cp -ax net-scripts/net ${DEST}/lib/rcscripts
37 cp -ax net-scripts/conf.d ${DEST}/etc
38 ln -sfn net.lo ${DEST}/init.d/net.eth0
39
40 cp ChangeLog ${DEST}
41
42 chown -R root:root ${DEST}
43 chmod 0755 ${DEST}/sbin/*
44 chmod 0755 ${DEST}/init.d/*
45 ( cd $TMP/${NAME}-${V} ; rm -rf `find -iname .svn` )
46 cd $TMP
47 tar cjvf ${TMP}/${NAME}-${V}.tar.bz2 ${NAME}-${V}
48 rm -rf ${NAME}-${V}
49
50 echo
51 du -b ${TMP}/${NAME}-${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