summaryrefslogtreecommitdiffstats
path: root/desktop/mcwm/extractconfig.sh
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2018-06-28 16:06:14 -0400
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-07-07 06:54:20 +0700
commitdba04447f4df0e08c713bdbfc96d8165ab5ea55a (patch)
tree632cc77f4dcaa6ff87a9424920022bb4d133a2cf /desktop/mcwm/extractconfig.sh
parentd5690dff5cca300982ce1d4d2aa9f31e4622d44b (diff)
downloadslackbuilds-dba04447f4df0e08c713bdbfc96d8165ab5ea55a.tar.gz
slackbuilds-dba04447f4df0e08c713bdbfc96d8165ab5ea55a.tar.xz
desktop/mcwm: New maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'desktop/mcwm/extractconfig.sh')
-rw-r--r--desktop/mcwm/extractconfig.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/mcwm/extractconfig.sh b/desktop/mcwm/extractconfig.sh
new file mode 100644
index 0000000000..ef81959996
--- /dev/null
+++ b/desktop/mcwm/extractconfig.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+PRGNAM=mcwm
+
+source ./$PRGNAM.info || exit 1
+
+SRCVER=${VERSION/_/-}
+
+[ -e config.h ] && mv -b config.h config.h.old
+tar xvfO $PRGNAM-$SRCVER.tar.bz2 --wildcards \*/config.h > config.h