diff options
author | Martin Quinson <mquinson@debian.org> | 2003-01-30 17:11:00 +0000 |
---|---|---|
committer | Martin Quinson <mquinson@debian.org> | 2003-01-30 17:11:00 +0000 |
commit | a62fb9b3aa2cee7c5a5b5c3e14372faba01f383d (patch) | |
tree | f5759b9dd40f7813d3bd05bde37a87d279feccbf /needs-checking/export_patch | |
parent | baaf1091d9321bf4b8ed0f3e73cf4b47ca05463c (diff) | |
download | quilt-a62fb9b3aa2cee7c5a5b5c3e14372faba01f383d.tar.gz |
Remove useless oldies. Missing functionnalities needs to be reimplemented almost from the scratch due to the bunch of changes to the core since those scripts were written.
Diffstat (limited to 'needs-checking/export_patch')
-rwxr-xr-x | needs-checking/export_patch | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/needs-checking/export_patch b/needs-checking/export_patch deleted file mode 100755 index 77c6185..0000000 --- a/needs-checking/export_patch +++ /dev/null @@ -1,64 +0,0 @@ -#! /bin/bash - -# This script is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# See the COPYING and AUTHORS files for more details. - -. patchfns 2>/dev/null || -. /usr/lib/patch-scripts/patchfns 2>/dev/null || -. $PATCHSCRIPTS_LIBDIR/patchfns 2>/dev/null || -{ - echo "Impossible to find my library 'patchfns'." - echo "Check your install, or go to the right directory" - exit 1 -} - -usage() -{ - echo "export_patch: export the patches listed in ./series" 1>&2 - echo "usage: export_patch destination-directory [prefix] " 1>&2 - exit 1 -} - -DIR="$1" -PREFIX="$2""_" - -if [ "$DIR" = "" ] -then - usage -fi - -if [ -e "$DIR" -a ! -d "$DIR" ] -then - echo "$DIR exists already, but is not a directory." 1>&2 - exit 1 -fi - -if [ ! -r ./series ] -then - echo "./series is not readable." 1>&2 - exit 1 -fi - -mkdir -p "$DIR" || exit 1 - -count=1 -for x in $(cat_series)` -do - fname=`echo "$count" "$PREFIX" "$x" |\ - awk '{ if ( $2 != "_" ) - printf("p%05d_%s%s\n", $1, $2, $3); - else - printf("p%05d_%s\n", $1, $3); - }'` - if [ ! -r $P/patches/"$x" ] - then - echo "$P/patches/"$x" is not readable. skipping." 1>&2 - continue; - fi - cp -f $P/patches/"$x" "$DIR"/"$fname" || continue; - count=`expr $count + 1` -done - |