summaryrefslogtreecommitdiff
path: root/shells/psh/files/patch-postinstall.pl
blob: a8b92c8c3baa94ad0eb43d077346cf69032e514b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- postinstall.pl.orig	2007-07-06 00:42:01.000000000 -0300
+++ postinstall.pl	2013-10-23 21:34:44.000000000 -0200
@@ -1,19 +1,9 @@
 
-if ($^O eq 'MSWin32') {
-	mkdir("/psh");
-	system("xcopy share\\themes \\psh /Y");
-	system("xcopy share\\complete \\psh /Y");
-} else {
 	my $where;
 
-	if( -w '/') {
-		$where= $ARGV[0]||$ARGV[1]||'/usr/local';
-	} else {
-		$where ='~/.psh';
-	}
+	$where= $ARGV[0]||$ARGV[1]||'/usr/local';
 	print "Installing share files to $where/share/psh\n";
 	system("mkdir -p $where/share/psh");
 	system("cp -r share/themes $where/share/psh");
 	system("cp -r share/complete $where/share/psh");
-}