Skip to content

Commit 5e0c6eb

Browse files
committed
Update update-live-packs and ignore stable folder
1 parent af49f04 commit 5e0c6eb

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ tramp
2424
tmp/*
2525
.smex-items
2626
swank/*
27+
stable/

packs/stable/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This folder will be populated by executing ~/.emacs.d/packs/update-live-packs

packs/update-live-packs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
#!/bin/zsh
1+
#!/bin/sh
22

33
echo "clearing out live packs"
4-
rm -rf ~/.emacs.d/packs/stable
5-
6-
echo "creating new live pack dir"
7-
mkdir ~/.emacs.d/packs/stable
4+
find ~/.emacs.d/packs/stable \
5+
-maxdepth 1 \
6+
! -name 'stable' \
7+
! -name '.gitkeep' \
8+
-type d \
9+
-exec rm -Rf {} \;
810

911
echo "copying content from dev packs"
1012
cp -pRL ~/.emacs.d/packs/dev/* ~/.emacs.d/packs/stable/

0 commit comments

Comments
 (0)