- Completely rewrote the verbosity stuff:
* Verbosity none: only display on line with result (default) * Verbosity 1 (-v, --verbose=1): print the most important target results * Verbosity 2 (-vv --verbose=2): print all commands called by make * Default verbosity level can be overwritten in ~/.daps/config via VERBOSITY=(0|1|2) - General option -d is no longer supported to avoid confusion with subcommand option -d (draft mode) - use --debug instead - Replaced target clean-book with clean-results - Updated BUGS and TODO - Stylesheets: * fixed bnc#573835 (PDF metadata) - Bugfix: BUILD_DIR is now set in the makefiles - Packaging: * added script that generates the source tarball via svn export * added %{ext_man} to spec file OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=46
This commit is contained in:
parent
f71dbba111
commit
4787c5564f
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:d2844a4e78cd7a833cbeae1d68ce12c587747a96296b045e8857bc7794942f55
|
oid sha256:bba4c0d60395948d8f7be603832836d64214bac887b3dbbdea2db182b051cab8
|
||||||
size 753215
|
size 759814
|
||||||
|
21
daps.changes
21
daps.changes
@ -1,3 +1,24 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 19 10:46:07 UTC 2011 - fsundermeyer@opensuse.org
|
||||||
|
|
||||||
|
- Completely rewrote the verbosity stuff:
|
||||||
|
* Verbosity none: only display on line with result (default)
|
||||||
|
* Verbosity 1 (-v, --verbose=1): print the most important target results
|
||||||
|
* Verbosity 2 (-vv --verbose=2): print all commands called by make
|
||||||
|
* Default verbosity level can be overwritten in ~/.daps/config via
|
||||||
|
VERBOSITY=(0|1|2)
|
||||||
|
- General option -d is no longer supported to avoid confusion with
|
||||||
|
subcommand option -d (draft mode) - use --debug instead
|
||||||
|
- Replaced target clean-book with clean-results
|
||||||
|
- Updated BUGS and TODO
|
||||||
|
- Stylesheets:
|
||||||
|
* fixed bnc#573835 (PDF metadata)
|
||||||
|
- Bugfix: BUILD_DIR is now set in the makefiles
|
||||||
|
- Packaging:
|
||||||
|
* added script that generates the source tarball via
|
||||||
|
svn export
|
||||||
|
* added %{ext_man} to spec file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 19 06:58:53 UTC 2011 - toms@suse.de
|
Mon Sep 19 06:58:53 UTC 2011 - toms@suse.de
|
||||||
|
|
||||||
|
70
fetch_source
Normal file
70
fetch_source
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Create DAPS source tarball from SVN
|
||||||
|
#
|
||||||
|
# Copyright (C) 2004 - 2011 SUSE Linux Products GmbH
|
||||||
|
#
|
||||||
|
# Author:
|
||||||
|
# Frank Sundermeyer <fsundermeyer at opensuse dot org>
|
||||||
|
#
|
||||||
|
|
||||||
|
NAME=daps
|
||||||
|
VERSION=
|
||||||
|
SPECFILE=${NAME}.spec
|
||||||
|
SVNPATH=https://svn.berlios.de/svnroot/repos/opensuse-doc/trunk/tools/daps
|
||||||
|
TMPDIR=$(mktemp -q -d --tmpdir daps_XXXXXXXX)
|
||||||
|
EXCLUDES=${TMPDIR}/${NAME}/packaging/exclude-files_for_daps_package.txt
|
||||||
|
|
||||||
|
#----------
|
||||||
|
# Functions
|
||||||
|
#----------
|
||||||
|
|
||||||
|
# exit on error
|
||||||
|
#
|
||||||
|
function exit_on_error {
|
||||||
|
echo -e "$1"
|
||||||
|
rm -rf $TMPDIR
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
#-----
|
||||||
|
# MAIN
|
||||||
|
#-----
|
||||||
|
#
|
||||||
|
# This script needs to be called from the daps osc checkout directory, so
|
||||||
|
# lets check whethter we are in the correct directory
|
||||||
|
#
|
||||||
|
if [[ ! -s daps.spec && ! -d .osc ]]; then
|
||||||
|
echo "Looks like you are not in the daps checkout directory."
|
||||||
|
read -p "Continue anyway (y/n) [n]: " CONT
|
||||||
|
if [[ n = $CONT || N = $CONT ]]; then
|
||||||
|
exit_on_error "Aborted by user."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Export daps from SVN
|
||||||
|
#
|
||||||
|
svn export -q $SVNPATH ${TMPDIR}/${NAME} || exit_on_error "SVN export failed"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Get the version number
|
||||||
|
#
|
||||||
|
VERSION=$(egrep "^Version:\s*" ${TMPDIR}/${NAME}/packaging/$SPECFILE | sed 's/^Version:\s*//')
|
||||||
|
|
||||||
|
if [[ -z $VERSION ]]; then
|
||||||
|
exit_on_error "Couldn't get version number from spec-file."
|
||||||
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Create the tarball
|
||||||
|
#
|
||||||
|
export BZIP2=--best
|
||||||
|
tar cjhf ${NAME}-${VERSION}.tar.bz2 -C ${TMPDIR} \
|
||||||
|
--exclude-from=$EXCLUDES ${NAME} || exit_on_error "Failed to create the tarball."
|
||||||
|
|
||||||
|
echo "Successfully created ${NAME}-${VERSION}.tar.bz2"
|
||||||
|
|
||||||
|
rm -rf ${TMPDIR}
|
||||||
|
|
||||||
|
exit 0
|
@ -1,7 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Fetch the DAPS SPEC file from our SVN
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ -e daps.spec ] && old daps.spec
|
|
||||||
svn cat https://svn.berlios.de/svnroot/repos/opensuse-doc/trunk/tools/daps/packaging/daps.spec > daps.spec
|
|
Loading…
Reference in New Issue
Block a user