PluginProbe
Meow Gallery / 4.1.5
Meow Gallery v4.1.5
5.5.5 5.5.4 5.5.3 5.5.2 5.5.1 5.5.0 5.4.9 5.4.8 5.4.7 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 All 157 releases
meow-gallery / resync.sh

resync.sh in Meow Gallery 4.1.5, at resync.sh

40 lines 697 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 #!/bin/zsh
2
3 # brew install coreutils
4 # The real GNU cp is required for cp -Rl
5
6 # Start
7
8 plugin="meow-gallery"
9 echo "Link with Meow Gallery Pro."
10
11 # Copy the files
12
13 dirs=(app classes common languages)
14 for x ($dirs); do
15 rm -Rf $x
16 /usr/local/opt/coreutils/bin/gcp -Rl $PWD/../$plugin$plugin-pro/$x$x .
17 done
18
19 # Delete useless files
20
21 rm -Rf $PWD/app/*.map
22 rm -Rf $PWD/app/admin
23 rm -Rf $PWD/app/galleries
24 rm -Rf $PWD/app/less
25 rm -Rf $PWD/common/js
26
27 # Copy main files
28
29 rm $plugin.php
30 rm readme.txt
31 cp $PWD/../$plugin$plugin-pro/$plugin$plugin-pro.php ./$plugin$plugin.php
32 cp $PWD/../$plugin$plugin-pro/readme.txt ./readme.txt
33
34 # Modify main files
35
36 sed -i '' 's/ (Pro)//g' ./$plugin$plugin.php
37 sed -i '' 's/ (Pro)//g' ./readme.txt
38
39 echo "Done."
40