summaryrefslogtreecommitdiff
path: root/postpost/cpinputs
diff options
context:
space:
mode:
Diffstat (limited to 'postpost/cpinputs')
-rwxr-xr-xpostpost/cpinputs30
1 files changed, 30 insertions, 0 deletions
diff --git a/postpost/cpinputs b/postpost/cpinputs
new file mode 100755
index 0000000..303e2ce
--- /dev/null
+++ b/postpost/cpinputs
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+for s in $1/lpic*
+do
+ if [ -d "$s" ]
+ then
+ for t in $s/*
+ do
+ if [ "`basename "$t" ".lpi"`.lpi" = "`basename "$t"`" ] || [ "`basename "$t" ".lpi"`.lpi" = "`basename "$t"`" ]
+ then
+ dir=$(basename "$(grep "path" "$t" | awk '{ print $3 }')")
+ if [ -d "../$dir" ]
+ then
+ dir="../$dir"
+ else
+ if [ -d "../daten_alt/$dir" ]
+ then
+ dir="../daten_alt/$dir"
+ else
+ continue
+ fi
+ fi
+ if [ -d "$dir/Post" ] && [ ! -e "$dir/Post/`basename "$t"`" ]
+ then
+ cp "$t" "$dir/Post/"
+ fi
+ fi
+ done
+ fi
+done