From 8cbee4ddaaa2163229f94f28eb9b5ec1eba01302 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Mon, 28 Jan 2008 12:09:45 -0300 Subject: [PATCH] Removed ancient lib/misc/extconv.sh helper, not needed since ealry RL years --- lib/misc/extconv.sh | 52 --------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 lib/misc/extconv.sh diff --git a/lib/misc/extconv.sh b/lib/misc/extconv.sh deleted file mode 100644 index 670d81a..0000000 --- a/lib/misc/extconv.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# -# Convert an Old-Style ROCK Linux Extension to the standard package format. -# -# --- SDE-COPYRIGHT-NOTE-BEGIN --- -# This copyright note is auto-generated by ./scripts/Create-CopyPatch. -# -# Filename: lib/misc/extconv.sh -# Copyright (C) 2008 The OpenSDE Project -# Copyright (C) 2004 - 2006 The T2 SDE Project -# Copyright (C) 1998 - 2003 Clifford Wolf -# -# More information can be found in the files COPYING and README. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. A copy of the -# GNU General Public License can be found in the file COPYING. -# --- SDE-COPYRIGHT-NOTE-END --- - -if [ -z "$1" -o ! -f "$1.ext" ] ; then - [ ! -f "$1.ext" ] && echo "No such file: $1.ext" - echo "Usage: $0 " - exit 1 -fi - -egrep '^# +\[' $1.ext | sed 's,^# *,,' | \ -egrep -v '^\[(P|PRI|PRIORITY)\]' > $1.desc - -pri=`{ egrep '^# +\[(P|PRI|PRIORITY)\] +' $1.ext ; echo ". . 5" ; } | head -n 1 | tr -s ' ' | cut -f3 -d' '` -echo "[P] X ------6--9 300.$pri" >> $1.desc - -{ -echo "#" -echo "# Converted from $name.ext by /misc/archive/extconv.sh" -echo "#" -echo -echo 'if [ "$prefix" != "opt/$pkg" ] ; then' -echo ' abort "!! This package is converted from an old-style .ext file and' -echo '!! might only compile fine when built with the Build-Pkg' -echo '!! option \"-prefix /opt/$pkg\"."' -echo 'fi' -echo -echo "main() {" -egrep -v '^# +\[' $1.ext -echo "}" -echo -echo "autoextract=0" -echo "custmain=main" -echo -} > $1.conf -